Nikolai Hlubek wrote:
>> Wouldn't another 'axis' option make the whole thing more
>> consistent?
> <soapbox>
> Using the OO interface everywhere would make the
> whole thing more consistent:
> fig = pylab.figure(1) ax = fig.add_subplot(111)
> ax.set_xlim(-0.25,2.0) ax.set_ylim(0.0,1.3)
> ax.set_aspect('scaled', True)
> ax.set_autoscale_on(False) ax.plot((0,.2,.3,.4,1.5),
> (0,.5,.3,.92,.48))
> <\soapbox>
or if you want to save some typing
fig = pylab.figure(1)
ax = fig.add_subplot(111,
xlim=(-0.25,2.0), ylim=(0.0,1.3),
aspect=('scaled', True), autoscale_on=False)
ax.plot((0,.2,.3,.4,1.5), (0,.5,.3,.92,.48))
JDH