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

catplot with redundant hue assignment creates empty legend with title #3537

Closed
mwaskom opened this issue Oct 21, 2023 · 1 comment
Closed

Comments

@mwaskom
Copy link
Owner

mwaskom commented Oct 21, 2023

sns.catplot(tips, x="day", y="total_bill", hue="day", col="sex", row="smoker", kind="box", height=3)

image

Set legend=False to workaround, but with default legend='auto' this should be disabled due to the redundancy.

@mwaskom mwaskom added this to the v0.13.1 milestone Oct 21, 2023
abdulwaheedsoudagar added a commit to abdulwaheedsoudagar/seaborn that referenced this issue Oct 25, 2023
abdulwaheedsoudagar added a commit to abdulwaheedsoudagar/seaborn that referenced this issue Oct 25, 2023
@abdulwaheedsoudagar
Copy link
Contributor

After updating the code output will be
sns.catplot(tips, x="day", y="total_bill", hue="day", col="sex", row="smoker", kind="box", height=3)

image

abdulwaheedsoudagar added a commit to abdulwaheedsoudagar/seaborn that referenced this issue Oct 30, 2023
abdulwaheedsoudagar added a commit to abdulwaheedsoudagar/seaborn that referenced this issue Oct 30, 2023
abdulwaheedsoudagar added a commit to abdulwaheedsoudagar/seaborn that referenced this issue Nov 1, 2023
abdulwaheedsoudagar added a commit to abdulwaheedsoudagar/seaborn that referenced this issue Nov 4, 2023
abdulwaheedsoudagar added a commit to abdulwaheedsoudagar/seaborn that referenced this issue Nov 4, 2023
@mwaskom mwaskom closed this as completed in 2a469a2 Nov 4, 2023
mwaskom pushed a commit that referenced this issue Nov 4, 2023
)

* FIX #3537 Disabling the legend based on the x-axis and hue values

* FIX #3537 Disabling the legend based on the x-axis and hue values

* FIX: catplot with redundant hue assignment creates empty legend with title #3537

* FIX: catplot with redundant hue assignment creates empty legend with title #3537

* FIX: catplot with redundant hue assignment creates empty legend with title #3537

* FIX: catplot with redundant hue assignment creates empty legend with title #3537

* FIX: catplot with redundant hue assignment creates empty legend with title #3537
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants