spiketools.plts.utils.save_figure

spiketools.plts.utils.save_figure(file_name, file_path=None, close=False, **save_kwargs)[source]

Save out a figure.

Parameters:
file_namestr

File name for the figure file to save out.

file_pathstr or Path

Path for where to save out the figure to.

closebool, optional, default: False

Whether to close the plot after saving.

save_kwargs

Additional arguments to pass into the save function.