Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix #4855: Blacklist rcParams that aren't style #5440

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 6 commits into from
Dec 31, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Don't apply blacklisted params from default style
  • Loading branch information
mdboom committed Dec 30, 2015
commit d9d16719c9f7571b46779c8248a5cf7e4a6e1ced
9 changes: 3 additions & 6 deletions 9 lib/matplotlib/style/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import matplotlib as mpl
from matplotlib import cbook
from matplotlib import rc_params_from_file
from matplotlib import rc_params_from_file, rcParamsDefault


__all__ = ['use', 'context', 'available', 'library', 'reload_library']
Expand Down Expand Up @@ -97,12 +97,9 @@ def use(style):
for style in styles:
if not cbook.is_string_like(style):
_apply_style(style)
continue
elif style == 'default':
mpl.rcdefaults()
continue

if style in library:
_apply_style(rcParamsDefault)
elif style in library:
_apply_style(library[style])
else:
try:
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.