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

Improve RectangleSelector Rotation revisited and rebased#26833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dhomeier wants to merge9 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromdhomeier:selector-rotation
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Fix deprecation warnings fromself.visible andset_data(x, y)
  • Loading branch information
@dhomeier
dhomeier committedJan 28, 2025
commit5ba3b5fe8bb048d104932fdbdba497aba4ff963a
6 changes: 3 additions & 3 deletionslib/matplotlib/widgets.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3630,7 +3630,7 @@ def extents(self, extents):
# Update displayed shape
self._draw_shape((corner_min[0], corner_max[0],
corner_min[1], corner_max[1]))
self.set_visible(self.visible)
self.set_visible(self.get_visible())
self.update()

@property
Expand DownExpand Up@@ -3693,7 +3693,7 @@ def _update_selection_artist(self):
def _update_handles(self):
self._corner_handles.set_data(*self.corners)
self._edge_handles.set_data(*self.edge_centers)
self._center_handle.set_data(*self.center)
self._center_handle.set_data(*self.center.reshape(-1, 1))

def _set_active_handle(self, event):
"""Set active handle based on the location of the mouse event."""
Expand DownExpand Up@@ -3782,7 +3782,7 @@ def _update_selection_artist(self):
# Update displayed handles
self._corner_handles.set_data(*self.corners)
self._edge_handles.set_data(*self.edge_centers)
self._center_handle.set_data(*self.center)
self._center_handle.set_data(*self.center.reshape(-1, 1))

self.update()

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp