- #1
EngWiPy
- 1,368
- 61
Hello,
I want to write on the bars inside the subplots of a seaborn.FacetGrid a number that represents their height on the y-scale. How can I do that?
Suppose the code for the FacetGrid is
where all feat1 ... feat3 are categorical variables/features.
Thanks in advance
I want to write on the bars inside the subplots of a seaborn.FacetGrid a number that represents their height on the y-scale. How can I do that?
Suppose the code for the FacetGrid is
Python:
g = sns.FacetGrid(df, row = 'feat1', size = 5, aspect = 2)
g = (g.map(sns.countplot, 'feat2', hue = 'feat3', data = df, palette="Set1")).add_legend()
where all feat1 ... feat3 are categorical variables/features.
Thanks in advance