It's hard to understand even if I read the document, so make a note
matplotlib.pyplot.hist(x, bins=10, range=None, normed=False, weights=None, cumulative=False, bottom=None, histtype='bar', align='mid', orientation='vertical', rwidth=None, log=False, color=None, label=None, stacked=False, hold=None, data=None, **kwargs)
Introduction of frequently used parameters
Parameter name | Contents | Mold |
---|---|---|
bins | Number of X-axis divisions (number of block divisions) | int |
range | X-axis data display range | int |
normed | Scale (1 is the probability of appearance of the maximum value 1 and 0 is the number of data) | boolean |
histtype | bar is usually barstacked is stacked, step is stepped with only the outer frame, stepfilled is filled with stairs | str |
color | Color (blue,green,red,cyan,magenta,yellow,black,white can be used) | str |
alpha | Transmittance | float |
label | Data label | str |
Of course, refer to the document at the end http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.hist
Recommended Posts