0

I have drawn histplot with sample data and below is the code for the same:

import seaborn as sns
import matplotlib.pyplot as plt
    
sns.set_theme(style="whitegrid")
    
df = sns.load_dataset("tips")
    
labels = df.groupby([ 'tip']).size()
print(labels)
ax = sns.histplot(y='tip', x='day',hue="sex", data=df)
    
plt.show()

And supported image:

enter image description here

Is it possible to add frequency/count in the each bar of that particular bar as here it is done in bargraph, How to get count of bar plot with non-count axis?

Mohit Narwani
  • 169
  • 2
  • 11

0 Answers0