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

minor missing capitalization #3714

Open
cddeangelis opened this issue Jun 25, 2024 · 0 comments · May be fixed by #3720
Open

minor missing capitalization #3714

cddeangelis opened this issue Jun 25, 2024 · 0 comments · May be fixed by #3720

Comments

@cddeangelis
Copy link

In countplot(), the axis stat label is not capitalized, inconsistent with other histograms.

import seaborn as sns

iris = sns.load_dataset("iris")

fig, axs = plt.subplots(ncols=2, figsize=(15,4))
sns.countplot(data=iris, x='sepal_width', hue='species',  ax=axs[0])
sns.histplot(data=iris, x='sepal_length', hue='species',  ax=axs[1])
plt.show()

2bb6c372-33ec-4b24-ad9d-fb93e1a18147

This should be fixed by changing line 2672 in categorical.py to

p.variables[count_axis] = stat.capitalize()

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

Successfully merging a pull request may close this issue.

1 participant