yt.visualization.plot_window.PlotWindow.save

PlotWindow.save(*args, **kwargs)

saves the plot to disk.

Parameters:

name : string

The base of the filename. If name is a directory or if name is not set, the filename of the dataset is used.

suffix : string

Specify the image type by its suffix. If not specified, the output type will be inferred from the filename. Defaults to PNG.

mpl_kwargs : dict

A dict of keyword arguments to be passed to matplotlib.

>>> slc.save(mpl_kwargs={‘bbox_inches’:’tight’}) :