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

Change the description of Rectangle's xy parameter#15433

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

Closed
iwmq wants to merge3 commits intomatplotlib:masterfromiwmq:master

Conversation

iwmq
Copy link

matplotlib.patches.Rectangle's first parameter, xy, is previously only documented for data plotting functions in which xy means left and bottom coordinates. However, in imshow(), the vertical axis's direction is inverted, and xy means left and top coordinates. See#15401.

In this PR, a fix is made to explain xy as starting coordinates so as to make it suitable for both cases.

@@ -707,7 +707,7 @@ def __init__(self, xy, width, height, angle=0.0, **kwargs):
Parameters
----------
xy : (float, float)
Thebottom and left rectangle coordinates
Thestarting coordinates
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybe better "anchor coordinates"?

SidharthBansal added a commit to SidharthBansal/matplotlib that referenced this pull requestApr 2, 2020
matplotlib.patches.Rectangle's first parameter, xy, is previously only documented for data plotting functions in which xy means left and bottom coordinates. However, in imshow(), the vertical axis's direction is inverted, and xy means left and top coordinates. Seematplotlib#15401.In this PR, a fix is made to explain xy as starting coordinates so as to make it suitable for both casesClosesmatplotlib#15433Taken things frommatplotlib#15433.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@iwmq@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp