From: Andrew Straw <strawman@as...>  20040713 01:07:16

John Hunter wrote: > > Andrew> John+Perry+whoever: the only matplotlib bug I found this > Andrew> time is worked around by the line > > >> rcParams['image.origin'] = 'upper' # 'lower': nav toolbar > >> problem ADS > > Andrew> We should fix that at some point. > >What was the bug? I didn't notice any problems with lower. > > OK, I discovered a rather easy demonstration of what looks to be a (possibly the same) bug (adding 'ylim' to the image_origin demo): from matplotlib.matlab import * x = arange(100.0); x.shape = 10,10 subplot(211) title('blue should be up') imshow(x, origin='upper', interpolation='nearest') set(gca(),'ylim',(0,23)) subplot(212) title('blue should be down') imshow(x, origin='lower', interpolation='nearest') set(gca(),'ylim',(0,23)) #savefig('image_origin2') show() 