Module: io

Module for Input/Ouput

mpltools.io.save_all_figs([directory, fmt, ...]) Save all open figures.

save_all_figs

mpltools.io.save_all_figs(directory='./', fmt='png', default_name='untitled%i')

Save all open figures.

Each figure is saved with the title of the plot, if possible, and multiple file formats can be saved by specifying a list of extensions.

Parameters :

directory : str

Path where figures are saved.

fmt : str, list of str

Image format(s) of saved figures.

default_name : str

Default filename to use if plot has no title. Must contain ‘%i’ for the figure number.

Examples

>>> save_all_figs('plots/', fmt=['pdf','png'])

Table Of Contents

Next topic

Module: layout