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?
What is the interpretation of the bins argument to matplotlib.hist if it is a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
histcommand.