Join GitHub today
imshow with big-endian data types on OS X #1005
When using imshow with an array of type >f, >f2, >f4, or >f8, the pixel(s) with maximum value in the array appears in the color of the minimum value.
a = array([[1, 0], [0, -1]])
This issue appeared on two systems:
This issue did not appear on a linux x86_64 system running
It's not OSX-specific. I can reproduce it in a linux-64 virtual machine.
The surprising thing is that the norm is preserving the byte order; and then the conversion to an integer for the table lookup seems to be going haywire.