wx.lib.plot.polyobjects.PolyMarker¶
Creates a PolyMarker object.
- param points:
The marker coordinates.
- type points:
list of
[x, y]
values- param **attr:
keyword attributes
Keyword and Default |
Description |
Type |
---|---|---|
|
see below |
str |
|
Marker size |
float |
|
Outline color |
|
|
Outline width |
float |
|
Outline style |
|
|
fill color |
|
|
fill style |
|
|
Legend string |
str |
Marker |
Description |
---|---|
|
A circle of diameter |
|
A dot. Does not have a size. |
|
A square with side length |
|
An upward-pointed triangle |
|
A downward-pointed triangle |
|
An “X” shape |
|
A “+” shape |
Warning
All methods except __init__
are private.
Class Hierarchy¶
Known Superclasses¶
wx.lib.plot.polyobjects.PolyPoints
Methods Summary¶
Initialize self. See help(type(self)) for accurate signature. |
|
Draw the points |
|
Width and Height of Marker |
Class API¶
- class PolyMarker(PolyPoints)¶
Creates a PolyMarker object.
- Parameters:
points (list of
[x, y]
values) – The marker coordinates.**attr – keyword attributes
Keyword and Default
Description
Type
marker='circle'
see below
str
size=2
Marker size
float
colour='black'
Outline color
width=1
Outline width
float
style=wx.PENSTYLE_SOLID
Outline style
wx.PenStyle
fillcolour=colour
fill color
fillstyle=wx.BRUSHSTYLE_SOLID
fill style
wx.BrushStyle
legend=''
Legend string
str
Marker
Description
'circle'
A circle of diameter
size
'dot'
A dot. Does not have a size.
'square'
A square with side length
size
'triangle'
An upward-pointed triangle
'triangle_down'
A downward-pointed triangle
'cross'
An “X” shape
'plus'
A “+” shape
Warning
All methods except
__init__
are private.
Methods¶
- __init__(self, points, \*\*attr)¶
Initialize self. See help(type(self)) for accurate signature.
- draw(self, dc, printerScale, coord=None)¶
Draw the points
- getSymExtent(self, printerScale)¶
Width and Height of Marker