Re: [Matplotlib-users] plot swaps axes specified with extent

2006-07-29 Thread Eric Firing
Stefan van der Walt wrote: > On Thu, Jul 27, 2006 at 08:57:47PM -0400, PGM wrote: > >>>Is this normal? If so, how do I get around the problem? I also >>>noticed that, even without extents, the image gets scaled after >>>plotting. >> >>Try to set the "_autoscale" parameter of your current 'axes' t

Re: [Matplotlib-users] plot swaps axes specified with extent

2006-07-28 Thread Stefan van der Walt
On Thu, Jul 27, 2006 at 08:57:47PM -0400, PGM wrote: > > Is this normal? If so, how do I get around the problem? I also > > noticed that, even without extents, the image gets scaled after > > plotting. > > Try to set the "_autoscale" parameter of your current 'axes' to False. That > way, you sho

Re: [Matplotlib-users] plot swaps axes specified with extent

2006-07-28 Thread Stefan van der Walt
Hi Eric On Thu, Jul 27, 2006 at 02:57:31PM -1000, Eric Firing wrote: > That certainly looks to me like a bug, but it is not obvious to me after > a quick look where the bug is (although I suspect it is very simple), > and I can't look at it more right now. If someone else doesn't chime in > wi

Re: [Matplotlib-users] plot swaps axes specified with extent

2006-07-28 Thread PGM
Stefan, > Is this normal? If so, how do I get around the problem? I also > noticed that, even without extents, the image gets scaled after > plotting. Try to set the "_autoscale" parameter of your current 'axes' to False. That way, you should avoid any inopportune rescaling. For the image, try

Re: [Matplotlib-users] plot swaps axes specified with extent

2006-07-28 Thread Eric Firing
Stefan, That certainly looks to me like a bug, but it is not obvious to me after a quick look where the bug is (although I suspect it is very simple), and I can't look at it more right now. If someone else doesn't chime in with a fix, you might want to file a bug report on sourceforge to make

[Matplotlib-users] plot swaps axes specified with extent

2006-07-27 Thread Stefan van der Walt
Hi all, I have a script that reads in mouse-click coordinates from an image. I noticed that, with image extents specified, the axes flip whenever I plot to them. This snippet demonstrates the behaviour I see: # -- START -- import pylab as P import numpy as N # Generate test pattern x = N.arang