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.arange(100).reshape(-1,1) + N.zeros(100)
print "Mouse click at (%f,%f)" % (event.xdata,event.ydata)
# -- END --
Is this normal? If so, how do I get around the problem? I also
noticed that, even without extents, the image gets scaled after
I'd appreciate any advice!
Thanks for your time.