publiplots.reset_style

publiplots.reset_style()[source]

Reset matplotlib rcParams to matplotlib’s own defaults.

publiplots applies its publication-grade rcParams (Arial font, 0.75 pt strokes, 600 savefig DPI, compact 8 pt labels, etc.) during import publiplots. Call reset_style() to revert matplotlib rcParams to matplotlib’s stock defaults — for example when embedding a publiplots plot inside a larger figure that should follow the host project’s styling.

This does not affect publiplots-specific parameters accessed via pp.rcParams ('alpha', 'palette', 'subplots.axes_size', etc.). Those continue to drive plot functions regardless of the matplotlib rcParams state.

Examples

>>> import publiplots as pp
>>> pp.reset_style()  # revert to matplotlib's defaults

Restore publiplots’ defaults afterwards:

>>> from publiplots.themes.rcparams import init_rcparams
>>> init_rcparams()

See also

publiplots.rcParams

Unified access to matplotlib and publiplots params.