Hi all,

I've been experimenting with the NonUniformImage class.  (Actually I want
*uniform* pixel spacing, but I want the image x and y coordinates to have
the correct *scaling* in the style of Matlab's  image(x,y,C).  The AxesImage
class, created via pylab.imshow, didn't seem to offer that, so I landed on
NonUniformImage, but if there's a better solution I'd be grateful for
tips...)


And here's the problem (or bug?):  with my Python 2.5.4 and my matplotlib
1.0, I go and run the 
http://matplotlib.sourceforge.net/examples/pylab_examples/image_nonuniform.html
gallery demo  but I decide that I want the y axis reversed (as is common in
image visualization).  So I either call pylab.gca().invert_yaxis() at the
end, or I change one of the lines that says

ax.set_ylim(-4,4)

to read

ax.set_ylim(4,-4)

which I believe is the approved method.  However the result I get is
non-sensical:  no more image variation in the vertical direction. Can anyone
tell me what, if anything, I'm doing wrong? 

Grateful for any hints, --jez
-- 
View this message in context: 
http://old.nabble.com/NonUniformImage%3A-problem-with-axis-reversal-tp29092028p29092028.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to