8000
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 eaa23ee commit 5f80ca1Copy full SHA for 5f80ca1
lib/matplotlib/style/core.py
@@ -29,6 +29,7 @@
29
STYLE_EXTENSION = 'mplstyle'
30
STYLE_FILE_PATTERN = re.compile('([\S]+).%s$' % STYLE_EXTENSION)
31
32
+
33
def is_style_file(filename):
34
"""Return True if the filename looks like a style file."""
35
return STYLE_FILE_PATTERN.match(filename) is not None
@@ -61,7 +62,6 @@ def use(name):
61
62
raise ValueError(msg % style)
63
64
-
65
@contextlib.contextmanager
66
def context(name, after_reset=False):
67
"""Context manager for using style settings temporarily.
@@ -147,6 +147,7 @@ def update_nested_dict(main_dict, new_dict):
147
library = None
148
available = []
149
150
151
def reload_library():
152
"""Reload style library."""
153
global library, available
0 commit comments