Creates a PolyHistogram object.
The histogram data.
sequence of y
values that define the heights of the bars
The bin specification.
sequence of x
values that define the edges of the bins
keyword attributes
Keyword and Default |
Description |
Type |
---|---|---|
|
edge color |
|
|
edge width |
float |
|
edge style |
|
|
fill color |
|
|
fill style |
|
|
legend string |
str |
Tip
Use np.histogram()
to easily create your histogram parameters:
hist_data, binspec = np.histogram(data)
hist_plot = PolyHistogram(hist_data, binspec)
Important
len(binspec)
must equal len(hist) + 1
.
Warning
All methods except __init__
are private.
wx.lib.plot.polyobjects.PolyBarsBase
Calculate the rectangle for plotting. |
|
Draw the bars |
PolyHistogram
(PolyBarsBase)¶Creates a PolyHistogram object.
hist (sequence of y
values that define the heights of the bars) – The histogram data.
binspec (sequence of x
values that define the edges of the bins) – The bin specification.
**attr – keyword attributes
Keyword and Default |
Description |
Type |
---|---|---|
|
edge color |
|
|
edge width |
float |
|
edge style |
|
|
fill color |
|
|
fill style |
|
|
legend string |
str |
Tip
Use np.histogram()
to easily create your histogram parameters:
hist_data, binspec = np.histogram(data)
hist_plot = PolyHistogram(hist_data, binspec)