anyplotlib.markers.MarkerRegistry#
- class anyplotlib.markers.MarkerRegistry(push_fn, allowed=None)[source]#
Bases:
objectTop-level two-level marker registry for a plot.
Usage:
plot.markers["circles"]["group1"].set(offsets=new_offsets)
plot.markersis aMarkerRegistry. Indexing by type returns aMarkerTypeDict(auto-created on first access).- Parameters:
allowed (frozenset | None)
- add(marker_type, name=None, **kwargs)[source]#
Add a marker group, returning the
MarkerGroup.- Parameters:
- Returns:
The created marker group. Call
.set()to update, or access properties as attributes.- Return type:
Examples
>>> group = registry.add("circles", name="my_circles", offsets=[[10, 20]], radius=5) >>> group.set(radius=8)