From: John H. <jdh...@ac...> - 2005-04-07 18:15:06
|
>>>>> "Stephen" == Stephen Walton <ste...@cs...> writes: Stephen> Hi, I was just comparing images displayed with imshow() Stephen> with what I get from IRAF's display command and ds9. The Stephen> latter puts the first axis increasing horizontally and Stephen> the second axis increasing vertically, as if the image Stephen> array were addressed as img[ix,iy], where ix and iy are Stephen> integer x and y coordinates. The axes imshow() produces Stephen> are labeled as if this is true for it as well, but in Stephen> fact the image is upside down with respect to what I see Stephen> with IRAF. Even odder, to see the same display I see in Stephen> IRAF I have to do imshow(img[::-1,:]), as if I'm Stephen> reversing the direction of the first axis. Does changing the rc param image.origin : upper # lower | upper to lower help? Stephen> I've tried to look at the source, really, but I feel like Stephen> I'm *years* away from being enough of a Python hacker to Stephen> understand matplotlib. Hmm, the code's not that bad is it :-) JDH |