Skip to content

Templatize class factories. #19033

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
May 26, 2021
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Nov 27, 2020

This makes mpl_toolkits axes classes picklable (see test_pickle) by
generalizing the machinery of _picklable_subplot_class_constructor,
which would otherwise have had to be reimplemented for each class
factory.

PR Summary

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 anntzer force-pushed the class-factories branch 4 times, most recently from e6165b6 to 66de640 Compare November 27, 2020 17:23
@QuLogic QuLogic added this to the v3.5.0 milestone Nov 28, 2020
@jklymak jklymak marked this pull request as draft May 9, 2021 00:44
@anntzer anntzer force-pushed the class-factories branch from fdfa893 to 8d1a031 Compare May 9, 2021 09:42
@anntzer anntzer marked this pull request as ready for review May 9, 2021 09:42
@anntzer
Copy link
Contributor Author

anntzer commented May 9, 2021

rebased, should be good to go.

@anntzer anntzer force-pushed the class-factories branch 5 times, most recently from b12a53e to 788162d Compare May 9, 2021 12:34
@jklymak
Copy link
Member

jklymak commented May 9, 2021

Since the song and dance was for cartopy do we know it works for them now? @dopplershift @QuLogic

@dopplershift
Copy link
Contributor

Examples seem to run fine (and there are no new test failures) with this PR + CartoPy master.

@anntzer anntzer force-pushed the class-factories branch from 788162d to 15d11ef Compare May 12, 2021 08:26
@anntzer
Copy link
Contributor Author

anntzer commented May 24, 2021

rebased

@anntzer anntzer marked this pull request as ready for review May 24, 2021 20:08
@anntzer anntzer force-pushed the class-factories branch from cdecca3 to 15f54df Compare May 24, 2021 20:09
@jklymak jklymak marked this pull request as draft May 26, 2021 14:53
This makes mpl_toolkits axes classes picklable (see test_pickle) by
generalizing the machinery of _picklable_subplot_class_constructor,
which would otherwise have had to be reimplemented for each class
factory.
@anntzer anntzer force-pushed the class-factories branch from 15f54df to 7b191bb Compare May 26, 2021 14:54
@jklymak jklymak marked this pull request as ready for review May 26, 2021 15:00
@jklymak jklymak requested a review from QuLogic May 26, 2021 15:00
@QuLogic
Copy link
Member

QuLogic commented May 26, 2021

But I guess now that things have reasonable names, they're no longer linking in docs?

@anntzer
Copy link
Contributor Author

anntzer commented May 26, 2021

Indeed, updated missing-references.

@QuLogic QuLogic merged commit 464dcf6 into matplotlib:master May 26, 2021
@anntzer anntzer deleted the class-factories branch May 26, 2021 23:48
@anntzer anntzer mentioned this pull request Jul 27, 2021
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants