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

Function rcdefaults

lib/matplotlib/__init__.py:1092–1114  ·  view source on GitHub ↗

Restore the `.rcParams` from Matplotlib's internal default style. Style-blacklisted `.rcParams` (defined in ``matplotlib.style.core.STYLE_BLACKLIST``) are not updated. See Also -------- matplotlib.rc_file_defaults Restore the `.rcParams` from the rc file originally

()

Source from the content-addressed store, hash-verified

1090
1091
1092def rcdefaults():
1093 """
1094 Restore the `.rcParams` from Matplotlib's internal default style.
1095
1096 Style-blacklisted `.rcParams` (defined in
1097 ``matplotlib.style.core.STYLE_BLACKLIST``) are not updated.
1098
1099 See Also
1100 --------
1101 matplotlib.rc_file_defaults
1102 Restore the `.rcParams` from the rc file originally loaded by
1103 Matplotlib.
1104 matplotlib.style.use
1105 Use a specific style file. Call ``style.use('default')`` to restore
1106 the default style.
1107 """
1108 # Deprecation warnings were already handled when creating rcParamsDefault,
1109 # no need to reemit them here.
1110 with _api.suppress_matplotlib_deprecation_warning():
1111 from .style.core import STYLE_BLACKLIST
1112 rcParams.clear()
1113 rcParams.update({k: v for k, v in rcParamsDefault.items()
1114 if k not in STYLE_BLACKLIST})
1115
1116
1117def rc_file_defaults():

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…