niteshade.utils.save_plot
- niteshade.utils.save_plot(plt, dirname='output', plotname='default')
Save a matplotlib.pyplot.plot() as a .png file.
- Parameters
dirname (str) – name of the directory to save the plot to. If the directory doesn’t exist, it is created
plotname (str) – plot name, if plotname is set to default, the plot name is set to timestemp