publiplots.reset_style#

publiplots.reset_style()[source]#

Reset matplotlib rcParams to matplotlib’s own defaults.

publiplots applies its publication-grade rcParams (Arial font at a uniform 7 pt, 0.75 pt outlines and 1.0 pt data lines, 600 savefig DPI, 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.