mwaskom / seaborn

Statistical data visualization in Python

Home Page:https://seaborn.pydata.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minor missing capitalization

cddeangelis opened this issue · comments

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()