10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Bug summary
When rotation_mode='anchor' and "verticalaligment="center_baseline", the vertical alignment is wrong even if ``rotation=0```.
rotation_mode='anchor'
"verticalaligment="center_baseline"
Code for reproduction
import matplotlib.pyplot as plt plt.plot([0, 1], lw=0) plt.axvline(.5, linewidth=.5, color='.5') plt.axhline(.5, linewidth=.5, color='.5') plt.text(.5, .5, 'pP', color='k', size=100, va='center_baseline') plt.text(.5, .5, 'pP', color='tab:red', size=100, va='center_baseline', rotation_mode='anchor')
Actual outcome
Expected outcome
Same alignment in this case.
Matplotlib version
print(matplotlib.get_backend())
Installed via conda.
The text was updated successfully, but these errors were encountered:
Fix vertical alignment of text (#13029)
edeccc6
* Fix vertical alignment of text This solves #13028. * Add test to make sure rotation_mode does break text position ... when rotation=0
Fixed by #13029.
Sorry, something went wrong.
No branches or pull requests
Bug report
Bug summary
When
rotation_mode='anchor'
and"verticalaligment="center_baseline"
, the vertical alignment is wrong even if ``rotation=0```.Code for reproduction
Actual outcome
Expected outcome
Same alignment in this case.
Matplotlib version
print(matplotlib.get_backend())
): agg, tkaggInstalled via conda.
The text was updated successfully, but these errors were encountered: