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
()
| 1220 | |
| 1221 | |
| 1222 | def 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 | |
| 1247 | def rc_file_defaults(): |