Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ab43a commit b12fb0eCopy full SHA for b12fb0e
lib/matplotlib/style/core.py
@@ -66,7 +66,7 @@ def _apply_style(d, warn=True):
66
mpl.rcParams.update(_remove_blacklisted_style_params(d, warn=warn))
67
68
69
-def use(styles):
+def use(style):
70
"""Use matplotlib style settings from a style specification.
71
72
The style name of 'default' is reserved for reverting back to
@@ -90,10 +90,10 @@ def use(styles):
90
91
92
"""
93
- if cbook.is_string_like(styles) or hasattr(styles, 'keys'):
+ if cbook.is_string_like(style) or hasattr(style, 'keys'):
94
# If name is a single str or dict, make it a single element list.
95
- styles = [styles]
96
- flattened_style = _flatten_style_dict({PARENT_STYLES: styles})
+ style = [style]
+ flattened_style = _flatten_style_dict({PARENT_STYLES: style})
97
_apply_style(flattened_style)
98
99
0 commit comments