Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Change the description of Rectangle's xy parameter#17008
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
@timhoffm@anntzer@story645@tacaswell kindly review and suggest changes if any. I am just trying to complete some pending PRS from which contributors left. This will help me to learn about mpl :-) |
I am not able to add reviewers' from lefthand side topmost panel. Can anyone give me access to add reviewers if possible? |
I'm not sure I agree with this change, as what constitutes the anchor point of the rectangle? |
The leftmost bottommost point of the rectangle …On Fri, 3 Apr 2020, 6:13 am Elliott Sales de Andrade, < ***@***.***> wrote: I'm not sure I agree with this change, as what constitutes the anchor point of the rectangle? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#17008 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AFAAEQ5YBBOBX6PQROPISCTRKUWJPANCNFSM4L23OTGQ> . |
SidharthBansal commentedApr 3, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Kindly check#15401 (comment) and#15433 |
timhoffm commentedApr 3, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Whetherxy is really the bottom left depends on the direction of the axis and the sign ofwidth andheight. IMHO, it's correct to call it anchor point, but this needs more context:
or
or similar. Please find a suitable wording yourself. |
Done! Thanks for a detailed explanation. |
Thanks@story645 …On Fri, 3 Apr 2020, 9:22 pm hannah, ***@***.***> wrote: ***@***.**** approved this pull request. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#17008 (review)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AFAAEQ235XBCCP6JT7ULBZDRKYA3PANCNFSM4L23OTGQ> . |
story645 commentedApr 3, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
You need to fix the CI error (which is a flake error) before it can be merged though |
@story645 I have rectified the flake error. Kindly merge. |
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
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
Closes#15433
PR Checklist