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

Appearance settings

Commit a9c2945

Browse filesBrowse files
committed
Fix deprecation warnings from self.visible and set_data(x, y)
1 parent 2c9919c commit a9c2945
Copy full SHA for a9c2945

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎lib/matplotlib/widgets.py

Copy file name to clipboardExpand all lines: lib/matplotlib/widgets.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3711,7 +3711,7 @@ def extents(self, extents):
37113711
# Update displayed shape
37123712
self._draw_shape((corner_min[0], corner_max[0],
37133713
corner_min[1], corner_max[1]))
3714-
self.set_visible(self.visible)
3714+
self.set_visible(self.get_visible())
37153715
self.update()
37163716

37173717
@property
@@ -3774,7 +3774,7 @@ def _update_selection_artist(self):
37743774
def _update_handles(self):
37753775
self._corner_handles.set_data(*self.corners)
37763776
self._edge_handles.set_data(*self.edge_centers)
3777-
self._center_handle.set_data(*self.center)
3777+
self._center_handle.set_data(*self.center.reshape(-1, 1))
37783778

37793779
def _set_active_handle(self, event):
37803780
"""Set active handle based on the location of the mouse event."""
@@ -3863,7 +3863,7 @@ def _update_selection_artist(self):
38633863
# Update displayed handles
38643864
self._corner_handles.set_data(*self.corners)
38653865
self._edge_handles.set_data(*self.edge_centers)
3866-
self._center_handle.set_data(*self.center)
3866+
self._center_handle.set_data(*self.center.reshape(-1, 1))
38673867

38683868
self.update()
38693869

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.