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

Skip to content

Register 3d projection by default. #13520

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
Feb 27, 2019
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 26, 2019

Now that we always install mpl_toolkits (#12317), we may as well always register
mplot3d and save an "apparently unused" import for the users (#12249).

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@@ -70,3 +73,7 @@ def get_projection_names():
Get a list of acceptable projection names.
"""
return projection_registry.get_projection_names()


# Register Axes3D.
Copy link
Member

Choose a reason for hiding this comment

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

Don't think we need this any more?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, indeed, fixed

Now that we always install mpl_toolkits, we may as well always register
mplot3d and save an "apparently unused" import for the users.
Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

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

If tests and docs work.

@anntzer
Copy link
Contributor Author

anntzer commented Feb 27, 2019

they passed

@dstansby
Copy link
Member

Worth a backport to 3.1.x?

@anntzer anntzer deleted the register3d branch February 27, 2019 16:46
@ImportanceOfBeingErnest
Copy link
Member

People are often concerned about the load/import time of matplotlib (#2188, #11546, ). Are the implications clear on this?

@anntzer
Copy link
Contributor Author

anntzer commented Feb 28, 2019

Examining the output of python -X importtime -c 'import matplotlib.pyplot, mpl_toolkits.mplot3d' indicates that the slowdown should be on the order of 1% (~3ms vs 300ms).

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.

6 participants