Re: [Matplotlib-users] strange axis limits behavior after using aspect_ratio

2008-02-14 Thread Eric Firing
Michael Droettboom wrote: > You can call > >ax.apply_aspect() > > to do the aspect ratio calculations -- seems to work for me here with > your example. > > The aspect ratio code has always felt like a bit of a black art to me > (it's a seemingly "necessarily complex" piece of code). Maybe

Re: [Matplotlib-users] strange axis limits behavior after using aspect_ratio

2008-02-14 Thread Eric Firing
Mark Bakker wrote: > Hello - > > As reported in an earlier post, when setting aspect ratio, the axis > limits don't get updated correctly it seems. Or maybe I have to make > another function call. Very easy example: > > from pylab import * > ax = subplot(211) > plot([1,2,3]) > ax.set_aspect('eq

Re: [Matplotlib-users] strange axis limits behavior after using aspect_ratio

2008-02-14 Thread Mark Bakker
Interesting, I didn't even know about apply_aspect. And it does indeed work for my case. Any reason not to call that at the end of the set_aspect function? Eric Firing probably knows. I think the aspect ratio functionality is very cool. You can set all kind of preferences, including an arbitrary a

Re: [Matplotlib-users] strange axis limits behavior after using aspect_ratio

2008-02-14 Thread Michael Droettboom
You can call ax.apply_aspect() to do the aspect ratio calculations -- seems to work for me here with your example. The aspect ratio code has always felt like a bit of a black art to me (it's a seemingly "necessarily complex" piece of code). Maybe someone else can answer -- is there a reas