Any way to create histogram with matplotlib.pyplot without plotting the histogram?

前端 未结 4 2143

I am using matplotlib.pyplot to create histograms. I\'m not actually interested in the plots of these histograms, but interested in the frequencies and bins (I know I can write

4条回答
  •  攒了一身酷
    2021-02-20 06:37

    If you would like to simply compute the histogram (that is, count the number of points in a given bin) and not display it, the np.histogram() function is available

提交回复
热议问题