Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd73f751

Browse files
committed
Fix deprecated attribute and add new feature entry
1 parent15beb47 commitd73f751

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Setting artist properties of selectors
2+
--------------------------------------
3+
4+
The artist properties of selectors can be changed using the `set_props` and
5+
`set_handle_props` methods.

‎lib/matplotlib/widgets.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,9 @@ def __init__(self, ax, onselect, direction, minspan=0, useblit=False,
21672167
# prev attribute is deprecated but we still need to maintain it
21682168
self._prev= (0,0)
21692169

2170-
rect=_api.deprecate_privatize_attribute("3.5")
2170+
rect=_api.deprecated("3.5")(
2171+
property(lambdaself:self.artists[0])
2172+
)
21712173

21722174
rectprops=_api.deprecated("3.5")(
21732175
property(lambdaself:self._props)
@@ -2799,7 +2801,9 @@ def __init__(self, ax, onselect, drawtype='box',
27992801

28002802
self._extents_on_press=None
28012803

2802-
to_draw=_api.deprecate_privatize_attribute("3.5")
2804+
to_draw=_api.deprecated("3.5")(
2805+
property(lambdaself:self.artists[0])
2806+
)
28032807

28042808
drawtype=_api.deprecate_privatize_attribute("3.5")
28052809

@@ -3338,6 +3342,10 @@ def __init__(self, ax, onselect, useblit=False,
33383342
self._artists= [line]+list(self._handles_artists)
33393343
self.set_visible(True)
33403344

3345+
line=_api.deprecated("3.5")(
3346+
property(lambdaself:self.artists[0])
3347+
)
3348+
33413349
vertex_select_radius=_api.deprecated("3.5",name="vertex_select_radius",
33423350
alternative="grab_range")(
33433351
property(lambdaself:self.grab_range,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp