I ran numpy.histogram()a set of subsets of larger datasets. I want to separate the calculations from the graphical output, so I would prefer not to name matplotlib.pyplot.hist()for the data itself.
In principle, both of these functions use the same input data: the original data itself, before they are binded. The version numpysimply returns the edges of the buffer nbin+1and nbin, while the version matplotlibcontinues to make the plot itself.
So, is there an easy way to generate histograms from the output itself numpy.histogram()without redoing the calculation (and keeping the inputs)?
To be clear, the output numpy.histogram()is a list of edges container nbin+1silos nbin; There is no procedure matplotlibthat takes them as input.
source
share