1plt.figure(figsize=(12,8))
2ax = sns.countplot(x="AXLES", data=dfWIM, order=[3,4,5,6,7,8,9,10,11,12])
3plt.title('Distribution of Truck Configurations')
4plt.xlabel('Number of Axles')
5plt.ylabel('Frequency [%]')
6
7for p in ax.patches:
8 ax.annotate('%{:.1f}'.format(p.get_height()), (p.get_x()+0.1, p.get_height()+50))
1# Declare graph/plot variable
2sample_plot = sns.countplot(df['Sample'])
3
4#This display the values on top of the bars
5for p in sample_plot.patches:
6 sample_plot.annotate('{}'.format(p.get_height()), (p.get_x()+.35, p.get_height()+20))