FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

DOC: remove redundant gridspec from example by rcomer · Pull Request #29667 · matplotlib/matplotlib · GitHub

Repository navigation

DOC: remove redundant gridspec from example - #29667

Merged
timhoffm merged 1 commit into
matplotlib:mainfrom
rcomer:doc-inset-gridspec
Feb 22, 2025
Merged

timhoffm merged 1 commit into
matplotlib:mainfrom
rcomer:doc-inset-gridspec

Conversation

rcomer commented Feb 22, 2025

Copy link
Copy Markdown
Member

PR summary

Since this example uses constrained layout, the 75% modification on the gridspec has no effect. We can therefore simplify this axes creation. (I have a use-case where constrained layout needs to run more times to fit everything properly. I saw this example and thought maybe using the 75% approach would help the constrained layout algorithm by starting closer to where it needs to go, but it made no difference to my use-case either).

Also switched out set(aspect= for set_aspect( following guidance at #28693 (comment).

PR checklist

github-actions Bot added the Documentation: examples files in galleries/examples label Feb 22, 2025

rcomer commented Feb 22, 2025

Copy link
Copy Markdown
Member Author

Before
After

rcomer commented Feb 22, 2025

Copy link
Copy Markdown
Member Author

Thanks @timhoffm! 🚀

jklymak commented Feb 22, 2025

Copy link
Copy Markdown
Member

Note as a follow up: we really should not be using gridspec at all in examples.

rcomer added a commit that referenced this pull request Feb 22, 2025
…667-on-v3.10.x

Backport PR #29667 on branch v3.10.x (DOC: remove redundant gridspec from example)
timhoffm added a commit that referenced this pull request Feb 22, 2025
…667-on-v3.10.0-doc

Backport PR #29667 on branch v3.10.0-doc (DOC: remove redundant gridspec from example)
ksunden mentioned this pull request Mar 3, 2025
5 tasks
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation: examples files in galleries/examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL