with all code matplotlib () generate a data set, set data hist functions with a few boxes (possibly non-uniformly) and function automatically calculates and then plot histogram.
I already have histogram data and I just want to plot it, how can I do it ?! For example, I have coaches (half the open range is marked by square and curved bracket notation),
[0, 1] 0 [1, 2] 3 [2, 3] [8] [6] Class = "post-text" itemprop = "text"> Perhaps your problem will be the weight parameter help.
import matplotlib.pyplot such as plt a = [1,2,3, 4,5,6,7,8,9] b = [5,3,4,5, 3,2,1,2,3] plt.hist (A, 9, weight = b) plt.show () Or, as TeXell had said, you are just a Make bar plots and can change X-X.
There is a link.
No comments:
Post a Comment