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 ced2f13

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

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
@@ -3635,7 +3635,7 @@ def extents(self, extents):
36353635
# Update displayed shape
36363636
self._draw_shape((corner_min[0], corner_max[0],
36373637
corner_min[1], corner_max[1]))
3638-
self.set_visible(self.visible)
3638+
self.set_visible(self.get_visible())
36393639
self.update()
36403640

36413641
@property
@@ -3698,7 +3698,7 @@ def _update_selection_artist(self):
36983698
def _update_handles(self):
36993699
self._corner_handles.set_data(*self.corners)
37003700
self._edge_handles.set_data(*self.edge_centers)
3701-
self._center_handle.set_data(*self.center)
3701+
self._center_handle.set_data(*self.center.reshape(-1, 1))
37023702

37033703
def _set_active_handle(self, event):
37043704
"""Set active handle based on the location of the mouse event."""
@@ -3787,7 +3787,7 @@ def _update_selection_artist(self):
37873787
# Update displayed handles
37883788
self._corner_handles.set_data(*self.corners)
37893789
self._edge_handles.set_data(*self.edge_centers)
3790-
self._center_handle.set_data(*self.center)
3790+
self._center_handle.set_data(*self.center.reshape(-1, 1))
37913791

37923792
self.update()
37933793

0 commit comments

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