publiplots.save_multiple¶
- publiplots.save_multiple(basename, formats=None, **kwargs)[source]¶
Save the same figure in multiple formats.
Convenient function for saving a figure in multiple formats with the same base name (e.g., both PNG for presentations and PDF for publications).
- Parameters:
Examples
Save in default formats (PNG and PDF): >>> pp.save_multiple(‘results/figure1’)
Save in custom formats: >>> pp.save_multiple(‘figure1’, formats=[‘png’, ‘svg’, ‘eps’])
Save with custom DPI: >>> pp.save_multiple(‘figure1’, formats=[‘png’], dpi=600)