publiplots.set_publication_style

publiplots.set_publication_style()[source]

Apply publication-ready style to all matplotlib plots.

This style is optimized for final publication figures with small fonts, high DPI (600), and compact dimensions. Perfect for creating figures that will be edited in Adobe Illustrator or directly included in papers.

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

Examples

Apply publication style for final figures: >>> import publiplots as pp >>> pp.set_publication_style() >>> fig, ax = pp.barplot(data=df, x=’x’, y=’y’) # Uses publication defaults

Check current parameters: >>> pp.rcParams[‘font.size’] # 8 >>> pp.rcParams[‘alpha’] # 0.15 >>> pp.rcParams[‘figure.figsize’] # [3.5, 2.5] >>> pp.rcParams[‘savefig.dpi’] # 600

Notes

This style sets: - Font size: 8pt (compact for publications) - Figure size: 3.5×2.5 inches (fits journal columns) - DPI: 600 (print quality) - Line width: 1.2 (appropriate for small plots) - Alpha: 0.15 (more visible on compact figures) - All publiplots params: color, capsize, palette, hatch_mode