forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When importing mpl do not rely on submodules being loaded
That ``` import matplotlib as mpl mpl.[submodule].[class] ``` works is an implementation detail because the top-level namespace has imported these submodules. There's no guarantee this will continue to work. Also move the imports of the two relevant classes close to their usage. This minimizes our top-level import to the canonical `import matplotlib.pyplot as plt`.
- Loading branch information
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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