Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colormap byteorder bug #1095

Merged
merged 4 commits into from Aug 17, 2012
Merged

Conversation

efiring
Copy link
Member

@efiring efiring commented Aug 16, 2012

Closes #1005.
I considered trying to work around the underlying putmask problem by modifying our _putmask, but concluded this was more trouble than it was worth; the bug seems to involve only the most special and obscure circumstances, which we happened to be triggering when substituting the number slightly less than unity for values of 1.0, and only when the input byte order is not native.
The solution in this pull request is to change the byte order to native before proceding with the putmask and other calculations in the Colormap.call() method

@mdboom
Copy link
Member

mdboom commented Aug 17, 2012

+1

efiring added a commit that referenced this pull request Aug 17, 2012
@efiring efiring merged commit f927517 into matplotlib:master Aug 17, 2012
@efiring efiring deleted the colormap_byteorder_bug branch May 29, 2013 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

imshow with big-endian data types on OS X
2 participants