Skip to content

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Apr 8, 2018

PR Summary

This fixes the logic error described in #10890.

@tacaswell tacaswell added this to the v2.2.3 milestone Apr 9, 2018
@tacaswell
Copy link
Member

I think this is a candidate for backport because it fixes a un-workaroundable bug in 2.2.2. I am not 100% on that, if someone else agrees merge away!

@jklymak
Copy link
Member

jklymak commented Apr 9, 2018

I actually am 98.5% sure its not a followed code path because of the new clipping for imshow (#10220). 0% codecov isn't very good ;-)

(i.e. max(x)>1 is always False)

@tacaswell
Copy link
Member

This is (for better or worse) a public function, I think the clipping happens when we set the data so using the 'standard' path this won't be hit, but using im.to_rgba(my_data) can still hit it.

@jklymak
Copy link
Member

jklymak commented Apr 9, 2018

Ah, fair enough.

OTOH, should it get a test if its public, including one to test if this error is properly called? But happy to see it merged if thats gilding the lily...

@efiring
Copy link
Member

efiring commented Apr 9, 2018

This is the sort of bugfix that I think does not warrant a test.

@efiring efiring merged commit 3f763a6 into matplotlib:master Apr 9, 2018
@timhoffm timhoffm deleted the fix-to_rgba-logic-error branch April 9, 2018 21:51
QuLogic added a commit that referenced this pull request Apr 10, 2018
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.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy