Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix logic error in ScalarMappable.to_rgba#11002

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

timhoffm
Copy link
Member

PR Summary

This fixes the logic error described in#10890.

@tacaswelltacaswell added this to thev2.2.3 milestoneApr 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 commentedApr 9, 2018
edited
Loading

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

(i.e. max(x)>1 is alwaysFalse)

@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 usingim.to_rgba(my_data) can still hit it.

@jklymak
Copy link
Member

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

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

jklymak reacted with thumbs up emoji

@efiringefiring merged commit3f763a6 intomatplotlib:masterApr 9, 2018
@timhoffmtimhoffm deleted the fix-to_rgba-logic-error branchApril 9, 2018 21:51
QuLogic added a commit that referenced this pull requestApr 10, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@efiringefiringefiring approved these changes

@tacaswelltacaswelltacaswell approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.2.3
Development

Successfully merging this pull request may close these issues.

4 participants
@timhoffm@tacaswell@jklymak@efiring

[8]ページ先頭

©2009-2025 Movatter.jp