MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _read_style_directory

Function _read_style_directory

lib/matplotlib/style/__init__.py:204–212  ·  view source on GitHub ↗

Return dictionary of styles defined in *style_dir*.

(style_dir)

Source from the content-addressed store, hash-verified

202
203
204def _read_style_directory(style_dir):
205 """Return dictionary of styles defined in *style_dir*."""
206 styles = dict()
207 for path in Path(style_dir).glob(f"*.{_STYLE_EXTENSION}"):
208 with warnings.catch_warnings(record=True) as warns:
209 styles[path.stem] = rc_params_from_file(path, use_default_template=False)
210 for w in warns:
211 _log.warning('In %s: %s', path, w.message)
212 return styles
213
214
215@_api.deprecated("3.11")

Callers 3

_update_user_libraryFunction · 0.85
read_style_directoryFunction · 0.85
__init__.pyFile · 0.85

Calls 2

rc_params_from_fileFunction · 0.90
PathClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…