Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

iwmq
Copy link

@iwmq iwmq commented Oct 17, 2019

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)
The bottom and left rectangle coordinates
The starting 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 request Apr 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. See matplotlib#15401.

In this PR, a fix is made to explain xy as starting coordinates so as to make it suitable for both cases
Closes matplotlib#15433
Taken things from matplotlib#15433.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants