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

Skip to content

Commit cee023e

Browse files
committed
Add api change note for the deprecation of line attribute of PolygonSelector.
1 parent 768c583 commit cee023e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
PolygonSelector
2+
^^^^^^^^^^^^^^^
3+
The *line* attribute is deprecated. If you want to change the selector
4+
artist properties, use the ``set_props`` or ``set_handle_props`` methods.

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ def set_visible(self, visible):
20122012
def artists(self):
20132013
"""Tuple of the artists of the selector."""
20142014
if getattr(self, '_handles_artists', None) is not None:
2015-
return (self._selection_artist, ) + self._handles_artists
2015+
return (self._selection_artist, *self._handles_artists)
20162016
else:
20172017
return (self._selection_artist, )
20182018

0 commit comments

Comments
 (0)