Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
DOC: add example of labelling axes#20147
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
f2c1ef1
to85d1371
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
# 10 points in and 5 points down: | ||
trans = mtransforms.ScaledTranslation(10/72, -5/72, fig.dpi_scale_trans) | ||
ax.text(0.0, 1.0, label, transform=ax.transAxes + trans, | ||
fontsize='medium', va='top', fontfamily='serif', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think you should call out the alignment specifically in the description, too.
fontsize='medium',va='top',fontfamily='serif', | |
fontsize='medium',verticalalignment='top',fontfamily='serif', |
Uh oh!
There was an error while loading.Please reload this page.
13eb3ef
to1fd0822
CompareUh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
I did notbhqve time to look into the details, but#15771 is a related PR that has stalled. |
We can update this example when that PR is done. |
…147-on-v3.4.1-docBackport PR#20147 on branch v3.4.1-doc (DOC: add example of labelling axes)
…147-on-v3.4.xBackport PR#20147 on branch v3.4.x (DOC: add example of labelling axes)
PR Summary
This new example demos a few approaches to adding labels to subplots, since this is a frequent request.
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).