@@ -2548,12 +2548,9 @@ class SpanSelector(_SelectorWidget):
2548
2548
----------
2549
2549
ax : `~matplotlib.axes.Axes`
2550
2550
2551
- onselect : callable
2551
+ onselect : callable with signature ``func(min: float, max: float)``
2552
2552
A callback function that is called after a release event and the
2553
2553
selection is created, changed or removed.
2554
- It must have the signature::
2555
-
2556
- def on_select(min: float, max: float) -> Any
2557
2554
2558
2555
direction : {"horizontal", "vertical"}
2559
2556
The direction along which to draw the span selector.
@@ -2564,22 +2561,14 @@ def on_select(min: float, max: float) -> Any
2564
2561
2565
2562
useblit : bool, default: False
2566
2563
If True, use the backend-dependent blitting features for faster
2567
- canvas updates. See the tutorial :ref:`blitting`
2568
- for details.
2564
+ canvas updates. See the tutorial :ref:`blitting` for details.
2569
2565
2570
- props : dict, optional
2566
+ props : dict, default: {'facecolor': 'red', 'alpha': 0.5}
2571
2567
Dictionary of `matplotlib.patches.Patch` properties.
2572
- Default::
2573
-
2574
- dict(facecolor='red', alpha=0.5)
2575
2568
2576
- onmove_callback : func(min, max), min/ max are floats, default: None
2569
+ onmove_callback : callable with signature `` func(min: float, max: float)``, optional
2577
2570
Called on mouse move while the span is being selected.
2578
2571
2579
- span_stays : bool, default: False
2580
- If True, the span stays visible after the mouse is released.
2581
- Deprecated, use *interactive* instead.
2582
-
2583
2572
interactive : bool, default: False
2584
2573
Whether to draw a set of handles that allow interaction with the
2585
2574
widget after it is drawn.
@@ -2593,8 +2582,7 @@ def on_select(min: float, max: float) -> Any
2593
2582
properties.
2594
2583
2595
2584
grab_range : float, default: 10
2596
- Distance in pixels within which the interactive tool handles can be
2597
- activated.
2585
+ Distance in pixels within which the interactive tool handles can be activated.
2598
2586
2599
2587
state_modifier_keys : dict, optional
2600
2588
Keyboard modifiers which affect the widget's behavior. Values
@@ -2603,12 +2591,10 @@ def on_select(min: float, max: float) -> Any
2603
2591
- "clear": Clear the current shape, default: "escape".
2604
2592
2605
2593
drag_from_anywhere : bool, default: False
2606
- If `True`, the widget can be moved by clicking anywhere within
2607
- its bounds.
2594
+ If `True`, the widget can be moved by clicking anywhere within its bounds.
2608
2595
2609
2596
ignore_event_outside : bool, default: False
2610
- If `True`, the event triggered outside the span selector will be
2611
- ignored.
2597
+ If `True`, the event triggered outside the span selector will be ignored.
2612
2598
2613
2599
snap_values : 1D array-like, optional
2614
2600
Snap the selector edges to the given values.
0 commit comments