WrightTools.artists.savefig

WrightTools.artists.savefig(path, fig=None, close=True, *, dpi=300)[source]

Save a figure.

Parameters:
  • path (str) – Path to save figure at.
  • fig (matplotlib.figure.Figure object (optional)) – The figure to plot onto. If None, gets current figure. Default is None.
  • close (bool (optional)) – Toggle closing of figure after saving. Default is True.
Returns:

The full path where the figure was saved.

Return type:

str