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

Restore implicit hue for wide categorical data #3496

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

mwaskom
Copy link
Owner

@mwaskom mwaskom commented Sep 26, 2023

As part of the big categorical plot refactor, a default change was made where plots are no longer implicitly color-mapped.

There is a simple path to restoring the previous default behavior (if desired) when using long-form data: add an explicit redundant hue-mapping. e.g. boxplot(df, x="grp", y="val") -> boxplot(df, x="grp", y="val", hue="grp").

But when using wide-form data, there is no equivalent path. So this PR adds some extra backwards-compatibility hacks so that wide-form plots retain the implicit color map. Additionally, wide-form plots can be coerced to a single color by passing color=. There is some additional special-casing around pointplot, which has always been an exception in its default behavior.

@mwaskom mwaskom added this to the v0.13.0 milestone Sep 26, 2023
@mwaskom mwaskom merged commit 92c22bc into master Sep 26, 2023
@mwaskom mwaskom deleted the cat/revert_wideform_assignments branch September 26, 2023 10:53
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.

None yet

1 participant