Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged

Conversation

jklymak
Copy link
Member

PR Summary

This new example demos a few approaches to adding labels to subplots, since this is a frequent request.

PR Checklist

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (runflake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • Conforms to Matplotlib style conventions (installflake8-docstrings and runflake8 --docstring-convention=all).
  • New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).

@jklymakjklymak modified the milestones:v3.5.0,v3.4-docMay 4, 2021
@jklymakjklymakforce-pushed thedoc-another-transform-example branch fromf2c1ef1 to85d1371CompareMay 4, 2021 00:14
# 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',
Copy link
Member

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',

@jklymakjklymakforce-pushed thedoc-another-transform-example branch from13eb3ef to1fd0822CompareMay 5, 2021 14:09
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
@timhoffm
Copy link
Member

I did notbhqve time to look into the details, but#15771 is a related PR that has stalled.

jklymak reacted with thumbs up emoji

@QuLogic
Copy link
Member

We can update this example when that PR is done.

@QuLogicQuLogic merged commit876415d intomatplotlib:masterMay 7, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestMay 7, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestMay 7, 2021
@jklymakjklymak deleted the doc-another-transform-example branchMay 7, 2021 22:54
QuLogic added a commit that referenced this pull requestMay 7, 2021
…147-on-v3.4.1-docBackport PR#20147 on branch v3.4.1-doc (DOC: add example of labelling axes)
jklymak added a commit that referenced this pull requestMay 8, 2021
…147-on-v3.4.xBackport PR#20147 on branch v3.4.x (DOC: add example of labelling axes)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.4-doc
Development

Successfully merging this pull request may close these issues.

3 participants
@jklymak@timhoffm@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp