Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve formatting of "Anatomy of a figure" #22206

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
merged 2 commits into from
Jan 15, 2022

Conversation

timhoffm
Copy link
Member

PR Summary

  • Simplify code
  • Adapt margins
  • Reduce figure border width (still thick but not massive)
  • Code formatting: use monospace and () when it's a function
  • slightly move annotations to better places

@jklymak
Copy link
Member

jklymak commented Jan 12, 2022

Maybe just include the static change here as well?

Only change here I don't agree with is the extra brackets. I don't think they add much information at the expense of considerable clutter

@timhoffm
Copy link
Member Author

Still have to grab the static image from the doc build (too lazy to build locally).

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge once the static image is added.

- Adapt margins
- Reduce figure border width (still thick but not massive)
- fontfamily: make code monospace
- slightly move annotations to better places
@timhoffm
Copy link
Member Author

Note I intentionally reduced the size from 800px to 750px because 750 is the max-width in the pydata-sphinx-theme. 800px would be resampled by the browser.

@jklymak
Copy link
Member

jklymak commented Jan 15, 2022

Is that hi dpi though? I think in the case where we have a static image we should always serve as hi dpi. Lo dpi plots look really bad on a 2x display.

@timhoffm
Copy link
Member Author

Yes, if you Check the image it‘s 1500 px.

@jklymak jklymak merged commit 7839b67 into matplotlib:main Jan 15, 2022
@timhoffm timhoffm deleted the doc-anatomy branch January 15, 2022 15:32
@timhoffm
Copy link
Member Author

@meeseeksdev backport to v3.5.x

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 16, 2022
@timhoffm timhoffm added this to the v3.5.2 milestone Jan 16, 2022
timhoffm added a commit that referenced this pull request Jan 17, 2022
…206-on-v3.5.x

Backport PR #22206 on branch v3.5.x (Improve formatting of "Anatomy of a figure")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants