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

Commit5e162fb

Browse files
committed
Fix deprecation warnings fromself.visible andset_data(x, y)
1 parentf88335e commit5e162fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/matplotlib/widgets.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3629,7 +3629,7 @@ def extents(self, extents):
36293629
# Update displayed shape
36303630
self._draw_shape((corner_min[0],corner_max[0],
36313631
corner_min[1],corner_max[1]))
3632-
self.set_visible(self.visible)
3632+
self.set_visible(self.get_visible())
36333633
self.update()
36343634

36353635
@property
@@ -3692,7 +3692,7 @@ def _update_selection_artist(self):
36923692
def_update_handles(self):
36933693
self._corner_handles.set_data(*self.corners)
36943694
self._edge_handles.set_data(*self.edge_centers)
3695-
self._center_handle.set_data(*self.center)
3695+
self._center_handle.set_data(*self.center.reshape(-1,1))
36963696

36973697
def_set_active_handle(self,event):
36983698
"""Set active handle based on the location of the mouse event."""
@@ -3781,7 +3781,7 @@ def _update_selection_artist(self):
37813781
# Update displayed handles
37823782
self._corner_handles.set_data(*self.corners)
37833783
self._edge_handles.set_data(*self.edge_centers)
3784-
self._center_handle.set_data(*self.center)
3784+
self._center_handle.set_data(*self.center.reshape(-1,1))
37853785

37863786
self.update()
37873787

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp