J'ai un tracé où la 5ème barre est placée incorrectement juste à côté de la 4ème barre. Que devrais-je changer? Mon small_ax_0
pandas géants dataframe ressemble à ceci:Déplacer l'étiquette du dernier histogramme à gauche de la barre
INDEX 0
0 1 5.0
1 10001 4.0
2 20001 5.0
3 30001 5.0
4 40001 5.0
5 50001 4.0
6 60001 1.0
7 70001 4.0
8 80001 0.0
9 90001 4.0
Voici mon code:
plt.hist(small_ax_0[0])
plt.tick_params(axis='both', which='major', labelsize=100)
plt.tick_params(axis='both', which='minor', labelsize=100)
plt.xlabel('Position', fontsize=100)
plt.ylabel('Frequency', fontsize=100)
plt.title('My Plot', fontsize = 150) ##
plt.grid(b=True, which='major', color='grey', linestyle='dotted')
plt.xticks(rotation = 45)
plt.show()