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

Fix Normalize(<signed integer array>). #6837

Merged
merged 2 commits into from Aug 1, 2016

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jul 26, 2016

Basically, everything needs to be cast to a float early enough.

See #6825, #6700 -- I've decided to use the whack-a-bug-at-a-time approach for now.

Basically, everything needs to be cast to a float early enough.
@efiring
Copy link
Member

efiring commented Jul 26, 2016

Related to, but not part of this PR: process_value is not doing what it claims in the docstring--it is casting float32 to float64 instead of preserving it. Only 1-byte and 2-byte integers get cast to float32.

@anntzer
Copy link
Contributor Author

anntzer commented Jul 27, 2016

Actually that was also broken by #6700. I fixed it now.

@tacaswell tacaswell added this to the 2.0 (style change major release) milestone Jul 28, 2016
@tacaswell tacaswell merged commit 84d979b into matplotlib:master Aug 1, 2016
tacaswell added a commit that referenced this pull request Aug 1, 2016
FIX: Normalize(<signed integer array>).

closes #6825
@tacaswell
Copy link
Member

backported to v2.x as 7e938fa

@anntzer anntzer deleted the fix-integer-normalization branch August 24, 2016 22:50
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.

None yet

4 participants