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: check for a set during color conversion #19583

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

jklymak
Copy link
Member

@jklymak jklymak commented Feb 25, 2021

Closes #19544 using @anntzer suggested fix....

@jklymak jklymak added topic: color/color & colormaps Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labels Feb 25, 2021
@jklymak jklymak added this to the v3.4.0 milestone Feb 25, 2021
lib/matplotlib/colors.py Outdated Show resolved Hide resolved
@jklymak jklymak force-pushed the fix-check-set-colors branch 2 times, most recently from 851af74 to 9d99c53 Compare February 26, 2021 01:52
@jklymak
Copy link
Member Author

jklymak commented Feb 26, 2021

@mwaskom did you have a second to check if this will work? Or at least that the tests cover the cases you think are important?

@mwaskom
Copy link

mwaskom commented Feb 26, 2021

My test suite passes with this change and the logic of the code looks right to me, thanks for asking.

lib/matplotlib/colors.py Outdated Show resolved Hide resolved
Co-authored-by: Antony Lee <anntzer.lee@gmail.com>
@QuLogic QuLogic merged commit fa73bc0 into matplotlib:master Mar 1, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 1, 2021
@jklymak jklymak deleted the fix-check-set-colors branch March 1, 2021 23:47
QuLogic added a commit that referenced this pull request Mar 2, 2021
…583-on-v3.4.x

Backport PR #19583 on branch v3.4.x (FIX: check for a set during color conversion)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: color/color & colormaps
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in 3.4.0rc1 in creating ListedColormap from a set
5 participants