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 hue_order as a subset in scatterplot #2848

Merged
merged 1 commit into from
Jun 11, 2022
Merged

Conversation

mwaskom
Copy link
Owner

@mwaskom mwaskom commented Jun 11, 2022

Fixes #2419

With simpler example from that issue (as the problem didn't really have anything to do with PairGrid:

sns.scatterplot(
    data=iris,
    x="sepal_length", y="sepal_width",
    hue="species", hue_order=["setosa", "versicolor"],
)

image

@codecov
Copy link

codecov bot commented Jun 11, 2022

Codecov Report

Merging #2848 (487dae9) into master (94621ce) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2848      +/-   ##
==========================================
- Coverage   98.05%   98.04%   -0.02%     
==========================================
  Files          69       69              
  Lines       22232    22242      +10     
==========================================
+ Hits        21800    21807       +7     
- Misses        432      435       +3     
Impacted Files Coverage Δ
seaborn/_oldcore.py 97.66% <100.00%> (-0.41%) ⬇️
tests/test_relational.py 99.28% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94621ce...487dae9. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pairplot fails with hue_order not containing all hue values in seaborn 0.11.1
1 participant