Creates a PolyBars object.
param points: | The data to plot. |
---|---|
type points: | sequence of (center, height) points |
param **attr: | keyword attributes |
Keyword and Default | Description | Type |
---|---|---|
barwidth=1.0 |
bar width | float or list of floats |
edgecolour='black' |
edge color | wx.Colour |
edgewidth=1 |
edge width | float |
edgestyle=wx.PENSTYLE_SOLID |
edge style | wx.PenStyle |
fillcolour='red' |
fill color | wx.Colour |
fillstyle=wx.BRUSHSTYLE_SOLID |
fill style | wx.BrushStyle |
legend='' |
legend string | str |
Important
If barwidth
is a list of floats:
len(barwidth)
must equal len(points)
.Warning
All methods except __init__
are private.
PolyBars
(PolyBarsBase)¶Creates a PolyBars object.
Parameters: |
|
---|
Keyword and Default | Description | Type |
---|---|---|
barwidth=1.0 |
bar width | float or list of floats |
edgecolour='black' |
edge color | wx.Colour |
edgewidth=1 |
edge width | float |
edgestyle=wx.PENSTYLE_SOLID |
edge style | wx.PenStyle |
fillcolour='red' |
fill color | wx.Colour |
fillstyle=wx.BRUSHSTYLE_SOLID |
fill style | wx.BrushStyle |
legend='' |
legend string | str |
Important
If barwidth
is a list of floats:
len(barwidth)
must equal len(points)
.Warning
All methods except __init__
are private.
__init__
(self, points, **attr)¶calc_rect
(self, x, y, w)¶Calculate the rectangle for plotting.
draw
(self, dc, printerScale, coord=None)¶Draw the bars