From: John H. <jdh...@ac...> - 2004-07-13 14:44:59
|
>>>>> "Andrew" == Andrew Straw <str...@as...> writes: Andrew> OK, I discovered a rather easy demonstration of what looks Andrew> to be a OK, (possibly the same) bug (adding 'ylim' to the Andrew> 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() I agree it looks like a bug. Just to make sure we are on the same page: what do you thing the correct behavior should be here? Do you think subplot (211) is correct? The question is: how should image origin interact with the axes ylimits? In this example, should both images fill the space from 0-10 on the y axes, regardless of the ylimit setting? In the origin upper case, should the blue strip be at 10 and the red strip at zero? In the origin lower case, should the blue be at zero and the red at 10? Inquiring minds want to know. Thanks, JDH |