Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Fix vertical alignment of text#13029
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
Fix vertical alignment of text#13029
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This solves#13028.
This should get a test I think. Was |
... when rotation=0
stefraynaud commentedDec 21, 2018 • 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.
@jklymak You are right. I added a test that makes sure settting rotation_mode doesn't change anything if rotation=0. |
Do you know if |
The rotation center is not at (0.5, 0.5) but at the edge of the "p". However, I'm unsure if that's supposed to happen, also it's the same before and after this PR. So if that's an issue it's a separate one. |
Thanks, and congratulations on your first contribution to Matplotlib! Hoping to see you back some time. |
PR Summary
This solves#13028: when
rotation_mode='anchor'
and"verticalaligment="center_baseline"
, the vertical alignment is wrong even ifrotation=0
. The vertical position of text was badly computed in this configuration, and the PR solves the problem.PR Checklist