Don't import rcParams but rather use mpl.rcParams. by anntzer · Pull Request #16406 · matplotlib/matplotlib · GitHub
Skip to content

Don't import rcParams but rather use mpl.rcParams. - #16406

Merged
timhoffm merged 1 commit into
matplotlib:masterfrom
anntzer:rcimport
Feb 4, 2020
Merged

Don't import rcParams but rather use mpl.rcParams.#16406
timhoffm merged 1 commit into
matplotlib:masterfrom
anntzer:rcimport

Conversation

@anntzer

@anntzer anntzer commented Feb 4, 2020

Copy link
Copy Markdown
Contributor

This helps letting modules be imported early in the init process, even
before the rcParams object is constructed.

I didn't change all cases, just those needed to make matplotlib.scale
importable into matplotlib.colors (per #16386).

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

This helps letting modules be imported early in the init process, even
before the rcParams object is constructed.

I didn't change all cases, just those needed to make matplotlib.scale
importable into matplotlib.colors.
@codecov

codecov Bot commented Feb 4, 2020

Copy link
Copy Markdown

@jklymak jklymak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems like a good start on this to me.

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.

3 participants