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

Skip to content

Conversation

rcomer
Copy link
Member

@rcomer rcomer commented Feb 22, 2025

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 github-actions bot added the Documentation: examples files in galleries/examples label Feb 22, 2025
@rcomer
Copy link
Member Author

rcomer commented Feb 22, 2025

Before
After

@timhoffm timhoffm added this to the v3.10.0-doc milestone Feb 22, 2025
@timhoffm timhoffm merged commit c9402f3 into matplotlib:main Feb 22, 2025
21 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Feb 22, 2025
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Feb 22, 2025
@rcomer rcomer deleted the doc-inset-gridspec branch February 22, 2025 20:24
@rcomer
Copy link
Member Author

rcomer commented Feb 22, 2025

Thanks @timhoffm! 🚀

@jklymak
Copy link
Member

jklymak commented Feb 22, 2025

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 ksunden mentioned this pull request Mar 3, 2025
5 tasks
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