@@ -1893,6 +1893,7 @@ def on_select(min: float, max: float) -> Any
1893
1893
props : dict, optional
1894
1894
Dictionary of `matplotlib.patches.Patch` properties.
1895
1895
Default:
1896
+
1896
1897
``dict(facecolor='red', alpha=0.5)``
1897
1898
1898
1899
onmove_callback : func(min, max), min/max are floats, default: None
@@ -1911,7 +1912,7 @@ def on_select(min: float, max: float) -> Any
1911
1912
1912
1913
handle_props : dict, default: None
1913
1914
Properties of the handle lines at the edges of the span. Only used
1914
- when *interactive* is True. See `~ matplotlib.lines.Line2D` for valid
1915
+ when *interactive* is True. See `matplotlib.lines.Line2D` for valid
1915
1916
properties.
1916
1917
1917
1918
handle_grab_distance : float, default: 10
@@ -2407,9 +2408,11 @@ def onselect(eclick: MouseEvent, erelease: MouseEvent)
2407
2408
backend).
2408
2409
2409
2410
props : dict, optional
2410
- Properties with which the __ARTIST_NAME__ is drawn.
2411
+ Properties with which the __ARTIST_NAME__ is drawn. See
2412
+ `matplotlib.patches.Patch` for valid properties.
2411
2413
Default:
2412
- ``dict(facecolor='red', edgecolor='black', alpha=0.2, fill=True))``
2414
+
2415
+ ``dict(facecolor='red', edgecolor='black', alpha=0.2, fill=True)``
2413
2416
2414
2417
spancoords : {"data", "pixels"}, default: "data"
2415
2418
Whether to interpret *minspanx* and *minspany* in data or in pixel
@@ -2423,7 +2426,11 @@ def onselect(eclick: MouseEvent, erelease: MouseEvent)
2423
2426
activated.
2424
2427
2425
2428
handle_props : dict, optional
2426
- Properties with which the interactive handles are drawn.
2429
+ Properties with which the interactive handles (marker artists) are
2430
+ drawn. See the marker arguments in `matplotlib.lines.Line2D` for valid
2431
+ properties. Default values are defined in ``mpl.rcParams`` except for
2432
+ the default value of ``markeredgecolor`` which will be the same as the
2433
+ ``edgecolor`` property in *props*.
2427
2434
2428
2435
interactive : bool, default: False
2429
2436
Whether to draw a set of handles that allow interaction with the
@@ -2538,9 +2545,11 @@ def __init__(self, ax, onselect, drawtype='box',
2538
2545
self .handle_grab_distance = handle_grab_distance
2539
2546
2540
2547
if props is None :
2541
- _handle_props = dict (markeredgecolor = 'r ' )
2548
+ _handle_props = dict (markeredgecolor = 'black ' )
2542
2549
else :
2543
- _handle_props = dict (markeredgecolor = props .get ('edgecolor' , 'r' ))
2550
+ _handle_props = dict (
2551
+ markeredgecolor = props .get ('edgecolor' , 'black' )
2552
+ )
2544
2553
_handle_props .update (cbook .normalize_kwargs (handle_props ,
2545
2554
Line2D ._alias_map ))
2546
2555
self ._corner_order = ['NW' , 'NE' , 'SE' , 'SW' ]
@@ -2954,9 +2963,8 @@ def onselect(verts):
2954
2963
Whether to use blitting for faster drawing (if supported by the
2955
2964
backend).
2956
2965
props : dict, optional
2957
- Properties with which the line is drawn.
2958
- Default:
2959
- ``dict()``
2966
+ Properties with which the line is drawn, see `matplotlib.lines.Line2D`
2967
+ for valid properties. Default values are defined in ``mpl.rcParams``.
2960
2968
button : `.MouseButton` or list of `.MouseButton`, optional
2961
2969
The mouse buttons used for rectangle selection. Default is ``None``,
2962
2970
which corresponds to all buttons.
@@ -3037,14 +3045,18 @@ class PolygonSelector(_SelectorWidget):
3037
3045
backend).
3038
3046
3039
3047
props : dict, optional
3040
- Artist properties for the line representing the edges of the polygon.
3048
+ Properties with which the line is drawn, see `matplotlib.lines.Line2D`
3049
+ for valid properties.
3041
3050
Default:
3042
- dict(color='k', linestyle='-', linewidth=2, alpha=0.5)
3051
+
3052
+ ``dict(color='k', linestyle='-', linewidth=2, alpha=0.5)``
3043
3053
3044
3054
handle_props : dict, optional
3045
3055
Artist properties for the markers drawn at the vertices of the polygon.
3046
- Default:
3047
- dict(marker='o', markersize=7, mec='k', mfc='k', alpha=0.5)
3056
+ See the marker arguments in `matplotlib.lines.Line2D` for valid
3057
+ properties. Default values are defined in ``mpl.rcParams`` except for
3058
+ the default value of ``markeredgecolor`` which will be the same as the
3059
+ ``color`` property in *props*.
3048
3060
3049
3061
handle_grab_distance : float, default: 15px
3050
3062
A vertex is selected (to complete the polygon or to move a vertex) if
0 commit comments