-
-
Notifications
You must be signed in to change notification settings - Fork 7.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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
QuLogic
merged 2 commits into
matplotlib:master
from
jklymak:doc-another-transform-example
May 7, 2021
Merged
DOC: add example of labelling axes #20147
QuLogic
merged 2 commits into
matplotlib:master
from
jklymak:doc-another-transform-example
May 7, 2021
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f2c1ef1
to
85d1371
Compare
QuLogic
reviewed
May 5, 2021
# 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.
Suggested change
fontsize='medium', va='top', fontfamily='serif', | |
fontsize='medium', verticalalignment='top', fontfamily='serif', |
13eb3ef
to
1fd0822
Compare
QuLogic
approved these changes
May 5, 2021
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. |
meeseeksmachine
pushed a commit
to meeseeksmachine/matplotlib
that referenced
this pull request
May 7, 2021
meeseeksmachine
pushed a commit
to meeseeksmachine/matplotlib
that referenced
this pull request
May 7, 2021
QuLogic
added a commit
that referenced
this pull request
May 7, 2021
…147-on-v3.4.1-doc Backport PR #20147 on branch v3.4.1-doc (DOC: add example of labelling axes)
jklymak
added a commit
that referenced
this pull request
May 8, 2021
…147-on-v3.4.x Backport PR #20147 on branch v3.4.x (DOC: add example of labelling axes)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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).