I am trying to plot a histogram using the matplotlib.hist()
function but I am not sure how to do it.
I have a list
probability = [0.360
If you haven't installed matplotlib yet just try the command.
> pip install matplotlib
import matplotlib.pyplot as plot
plot.hist(weightList,density=1, bins=20)
plot.axis([50, 110, 0, 0.06])
#axis([xmin,xmax,ymin,ymax])
plot.xlabel('Weight')
plot.ylabel('Probability')
plot.show()