I have a data set (number of dice thrown showing a particular number) and I'm trying to create a histogram of it. The data is stored in a text file, one trial per line, and I'm loading it using load().
It appears I need to group the data somehow into counts, eg:
8 : 1
9 : 0
10 : 0
11 : 1
12 : 2
and so on...
Is there a way to do this in matplotlib or am I missing something about hist() or one of the other functions?