anyplotlib.RectangleWidget#
- class anyplotlib.RectangleWidget(push_fn, *, x, y, w, h, color='#00e5ff')[source]#
Bases:
WidgetDraggable rectangle overlay widget for 2-D plots.
- Parameters:
push_fn (Callable) – Update callback.
x (float) – Top-left corner position in pixel/data coordinates.
y (float) – Top-left corner position in pixel/data coordinates.
w (float) – Width and height in pixel/data coordinates.
h (float) – Width and height in pixel/data coordinates.
color (str, optional) – CSS colour for the rectangle outline. Default
"#00e5ff".