publiplots.set_notebook_style

publiplots.set_notebook_style()[source]

Apply notebook-ready style to all matplotlib plots.

This style is optimized for interactive work in Jupyter notebooks with readable font sizes and larger figure dimensions.

The style includes both matplotlib rcParams and publiplots parameters (color, alpha, capsize, palette, hatch_mode).

Examples

Apply notebook style for interactive work: >>> import publiplots as pp >>> pp.set_notebook_style() >>> fig, ax = pp.barplot(data=df, x=’x’, y=’y’) # Uses notebook defaults

Check current parameters: >>> pp.rcParams[‘font.size’] # 11 >>> pp.rcParams[‘alpha’] # 0.1 >>> pp.rcParams[‘figure.figsize’] # [6.0, 4.0]

Notes

This style sets: - Font size: 11pt (readable on screens) - Figure size: 6×4 inches - DPI: 300 (good quality for screens) - Line width: 2.0 (thicker for visibility) - All publiplots params: color, alpha, capsize, palette, hatch_mode