aspcore.utilities.save_plot

aspcore.utilities.save_plot(print_method, folder, name='')

Save plot to file in a number of formats.

Parameters:
  • print_method (str) – Method for saving the plot. Options are ‘show’, ‘tikz’, ‘pdf’, ‘svg’, ‘none’. If ‘show’, the plot is shown in a window. If ‘tikz’, the plot is saved as a tikz file and a pdf file. Requires tikzplotlib installed, and the ‘correct’ matplotlib version. tikzplotlib is no longer maintained, so this is getting increasingly difficult. If ‘pdf’, the plot is saved as a pdf file. If ‘svg’, the plot is saved as a svg file. If ‘none’, the plot is not saved.

  • folder (Path) – Folder to save the plot in.

  • name (str, optional) – Name of the file. The default is “”.