MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / rcdefaults

Function rcdefaults

site-packages/matplotlib/__init__.py:1222–1244  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1220
1221
1222def rcdefaults():
1223 """
1224 Restore the rc params from Matplotlib's internal default style.
1225
1226 Style-blacklisted rc params (defined in
1227 `matplotlib.style.core.STYLE_BLACKLIST`) are not updated.
1228
1229 See Also
1230 --------
1231 rc_file_defaults :
1232 Restore the rc params from the rc file originally loaded by Matplotlib.
1233 matplotlib.style.use :
1234 Use a specific style file. Call ``style.use('default')`` to restore
1235 the default style.
1236 """
1237 # Deprecation warnings were already handled when creating rcParamsDefault,
1238 # no need to reemit them here.
1239 with warnings.catch_warnings():
1240 warnings.simplefilter("ignore", mplDeprecation)
1241 from .style.core import STYLE_BLACKLIST
1242 rcParams.clear()
1243 rcParams.update({k: v for k, v in rcParamsDefault.items()
1244 if k not in STYLE_BLACKLIST})
1245
1246
1247def rc_file_defaults():

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
updateMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected