anyplotlib.markers.MarkerGroup#
- class anyplotlib.markers.MarkerGroup(marker_type, name, kwargs, push_fn, parent=None)[source]#
Bases:
objectA named collection of markers of one type on one plot.
- Parameters:
marker_type (str) – One of the supported marker types (
'circles','lines', …).name (str) – User-facing name (key in the parent
MarkerTypeDict).kwargs (dict) – Initial matplotlib-style kwargs for this group.
push_fn (callable) – Zero-arg callback that serialises the full registry and pushes it to the parent figure trait.
parent (MarkerTypeDict | None)
- get(key, default=None)[source]#
Return a property as last given to the constructor or
set()(matplotlib-style name, in the group’scoordsframe).>>> group.get("edgecolors") '#ff0000'
- Parameters:
key (str)
- property coords: str#
"pixel"or"data".Only meaningful for
transform="data"groups on a 2-D image panel, where"pixel"(the default) means image pixels and"data"the calibrated axis values. On 1-D panels both mean data coordinates. Change it withgroup.set(coords=...); the stored values are then reinterpreted, not converted.- Type:
Frame of this group’s positions and lengths