I need to make a histogram in Python with grades distribution. I use matplotlib.
import matplotlib.pyplot as plt
plt.title('Histogram Grades')
data = [1, 3, 10, 8, 9, 5, 3, 7, 7, 3, 1, 3, 10, 8, 9, 5, 3, 7, 7, 3]
data.sort
plt.hist(data)
plt.ylabel('Count')
plt.show()
The histogram it's OK but I don't like the grouping python uses to show grades in x-axis. I wonder if there is a way (some hist parameter or another plot library), where I can have bars for each individual grade?
Thanks in advance.

