Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b3925a9

Browse files
committed
Fix indentation docstring, update API changes and update SpanSelector example
1 parent 4d3abfc commit b3925a9

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
RectangleSelector and EllipseSelector
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
The *maxdist* argument is deprecated, use *grab_range* instead.
4+
The *rectprops* argument is deprecated, use *props* instead.
45
The *marker_props* argument is deprecated, use *handle_props* instead.
56

67
PolygonSelector
78
~~~~~~~~~~~~~~~
89
The *vertex_select_radius* argument is deprecated, use *grab_range* instead.
10+
The *lineprops* argument is deprecated, use *props* instead.
911
The *markerprops* argument is deprecated, use *handle_props* instead.
12+
13+
SpanSelector
14+
~~~~~~~~~~~~
15+
The *rectprops* argument is deprecated, use *props* instead.
16+
17+
LassoSelector
18+
~~~~~~~~~~~~~
19+
The *lineprops* argument is deprecated, use *props* instead.

examples/widgets/span_selector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def onselect(xmin, xmax):
5353
onselect,
5454
"horizontal",
5555
useblit=True,
56-
rectprops=dict(alpha=0.5, facecolor="tab:blue"),
56+
props=dict(alpha=0.5, facecolor="tab:blue"),
5757
interactive=True,
5858
drag_from_anywhere=True
5959
)

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2542,7 +2542,7 @@ def onselect(eclick: MouseEvent, erelease: MouseEvent)
25422542
`matplotlib.patches.Patch` for valid properties.
25432543
Default:
25442544
2545-
``dict(facecolor='red', edgecolor='black', alpha=0.2, fill=True)``
2545+
``dict(facecolor='red', edgecolor='black', alpha=0.2, fill=True)``
25462546
25472547
spancoords : {"data", "pixels"}, default: "data"
25482548
Whether to interpret *minspanx* and *minspany* in data or in pixel

0 commit comments

Comments
 (0)