Reputation:
What is the interpretation of the bins
argument to matplotlib.hist
if it is a sequence? Is it the same as numpy's bins
argument?
Upvotes: 0
Views: 250
Reputation: 793
Yes, it is the same. It defines the number of intervals for your data. Giving a sequence allows you to have unequally large bins, both in numpy and matplotlib. You'll find detailed help on this in numpy's and matplotlib's documentation of the hist
command.
Upvotes: 3