[Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
Hi, I want to keep the image zoomed to the same factor for all my images. If I try ipython -pylab imshow(rand(50,50)) then zoom with the mouse and redo imshow(rand(50,50)) the zoom factor is not kept, ie xrange/yrange are still (0,50). How can I keep the zoom factor ? TIA. Cheers, --

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread Jouni K . Seppänen
fred [EMAIL PROTECTED] writes: imshow(rand(50,50)) then zoom with the mouse and redo imshow(rand(50,50)) the zoom factor is not kept, ie xrange/yrange are still (0,50). How can I keep the zoom factor ? Try: imshow(rand(50,50)) # zoom with mouse xlim=getp(gca(), 'xlim'); ylim = getp(gca(),

[Matplotlib-users] jython and matplotlib

2007-06-18 Thread Duncan Child
We would like to provide a Matplotlib-like plotting function in a Java application we are building. We can't require our users to install native code so we can't use Matplotlib. We have a simple implementation that would be sufficient for v1.0 of our application that uses jython and jfreechart.

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
fred a écrit : I get anoter issue now. How can I know if the displayed image has been zoomed or not (I mean not on testing xlim ylim) ? TIA -- http://scipy.org/FredericPetit - This SF.net email is sponsored by DB2