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
()
| 1090 | |
| 1091 | |
| 1092 | def 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 | |
| 1117 | def rc_file_defaults(): |