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
Corrections to comments
Co-authored-by: Kyle Sunden <ksunden@users.noreply.github.com>
  • Loading branch information
@dhomeier@ksunden
dhomeier andksunden committedJan 28, 2025
commitc3b7e4bc307565849bffcde89840a398a09fbd91
6 changes: 3 additions & 3 deletionslib/matplotlib/widgets.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3516,7 +3516,7 @@ def _onmove(self, event):
x0 += width - new_wh
width = height = new_wh

# Transform back into de-rotated displaycoordiantes
# Transform back into de-rotated displaycoordinates
new_geom_state.x0, new_geom_state.y0 = t.inverted().transform(
(x0, y0))
# Width and height are invariant under the rotation, so no need
Expand DownExpand Up@@ -3647,7 +3647,7 @@ def rotation(self, value):

def _clip_to_axes(self, x, y):
"""
Clip x and y values indiplay coordinates to the limits of the current
Clip x and y values indisplay coordinates to the limits of the current
Axes.
"""
xlim = sorted(self.ax.get_xlim())
Expand All@@ -3674,7 +3674,7 @@ def _clip_to_axes(self, x, y):

return x, y

# TODO: _draw_shape can be removed in 3.7
# TODO: _draw_shape can be removed in 3.7(??) - still used in @extents.setter
# draw_shape = _api.deprecate_privatize_attribute('3.5')

def _draw_shape(self, extents):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp