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(), 'ylim')
imshow(rand(50,50))
setp(gca(), 'xlim', xlim); setp(gca(), 'ylim', ylim)

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to