Skip to content

Support SubFigures in AxesDivider. #20073

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 1 commit into from
May 13, 2021
Merged

Support SubFigures in AxesDivider. #20073

merged 1 commit into from
May 13, 2021

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Apr 25, 2021

PR Summary

Closes #20069 (comment).

Goes on top of #20069 and #20072. The example now gives
adsf

Writing a test specifically for this case is currently left as an exercise to the reader...

PR Checklist

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

@anntzer
Copy link
Contributor Author

anntzer commented Apr 25, 2021

That's just s-g and subfigures not playing well together; I guess here I just needed to have a single block from the pov of s-g so that it shows the whole figure at the end.

@jklymak
Copy link
Member

jklymak commented Apr 25, 2021

Looks good. But I looked at this for a few minutes, and still can't guess how that code makes a 2x2 grid, or what nx, ny etc are. Since you must understand it at this point, can you add a few more comments explaining it?

@anntzer
Copy link
Contributor Author

anntzer commented Apr 25, 2021

Does https://57381-1385122-gh.circle-artifacts.com/0/doc/build/html/tutorials/toolkits/axes_grid.html#axesdivider help a bit? (I think I'd rather get the tutorial clear and not try to explain the same thing in multiple places)

@jklymak
Copy link
Member

jklymak commented Apr 25, 2021

... sure, but maybe link the tutorial here?

@anntzer anntzer force-pushed the adsf branch 2 times, most recently from 43402a2 to 3362976 Compare April 26, 2021 09:17
@anntzer
Copy link
Contributor Author

anntzer commented Apr 26, 2021

Sure.
Also rebased to remove the dependency on #20069, so this can go in as is.

@anntzer anntzer force-pushed the adsf branch 2 times, most recently from 7969538 to 3b727b6 Compare April 26, 2021 09:20
@anntzer
Copy link
Contributor Author

anntzer commented May 6, 2021

rebased

@QuLogic QuLogic merged commit 4c5eff9 into matplotlib:master May 13, 2021
@anntzer anntzer deleted the adsf branch May 13, 2021 09:22
@tacaswell tacaswell added this to the v3.5.0 milestone May 14, 2021
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.

4 participants