8000 Don't apply blacklisted params from default style · matplotlib/matplotlib@d9d1671 · GitHub
[go: up one dir, main page]

Skip to content

Commit d9d1671

Browse files
committed
Don't apply blacklisted params from default style
1 parent 0946c1c commit d9d1671

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/matplotlib/style/core.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import matplotlib as mpl
2424
from matplotlib import cbook
25-
from matplotlib import rc_params_from_file
25+
from matplotlib import rc_params_from_file, rcParamsDefault
2626

2727

2828
__all__ = ['use', 'context', 'available', 'library', 'reload_library']
@@ -97,12 +97,9 @@ def use(style):
9797
for style in styles:
9898
if not cbook.is_string_like(style):
9999
_apply_style(style)
100-
continue
101100
elif style == 'default':
102-
mpl.rcdefaults()
103-
continue
104-
105-
if style in library:
101+
_apply_style(rcParamsDefault)
102+
elif style in library:
106103
_apply_style(library[style])
107104
else:
108105
try:

0 commit comments

Comments
 (0)
0