savefig (pyleoclim.utils.plotting.savefig)

pyleoclim.utils.plotting.savefig(fig, path=None, settings={}, verbose=True)[source]

Save a figure to a path

Parameters
  • fig (matplotlib.pyplot.figure) – the figure to save

  • path (str) – the path to save the figure, can be ignored and specify in “settings” instead

  • settings (dict) –

    the dictionary of arguments for plt.savefig(); some notes below: - “path” must be specified in settings if not assigned with the keyword argument;

    it can be any existed or non-existed path, with or without a suffix; if the suffix is not given in “path”, it will follow “format”

    • ”format” can be one of {“pdf”, “eps”, “png”, “ps”}

See also

pyleoclim.utils.plotting.showfig

returns a visual of the figure.