user248237
user248237

Reputation:

interpretation of bins in matplotlib hist

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

Answers (1)

Leon Weber
Leon Weber

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

Related Questions