anyplotlib.LabelWidget#
- class anyplotlib.LabelWidget(push_fn, *, x, y, text='Label', fontsize=14, color='#00e5ff', show_handles=True)[source]#
Bases:
WidgetText label overlay widget for 2-D plots.
- Parameters:
push_fn (Callable) – Update callback.
x (float) – Label position in pixel/data coordinates.
y (float) – Label position in pixel/data coordinates.
text (str, optional) – Label text. Default
"Label".fontsize (int, optional) – Font size in points. Default 14.
color (str, optional) – CSS colour for the text. Default
"#00e5ff".show_handles (bool, optional) – Draw the anchor grab handle. Default
True.