pyopmnearwell.utils.plotting module

Helper functions for plotting.

pyopmnearwell.utils.plotting.save_fig_and_data(fig: Figure, path: str | Path) None

Save a pyplot figure to an .svg file and save the data to a .pickle file.

Parameters:
  • fig (matplotlib.figure.Figure) – The figure to save.

  • path (str | pathlib.Path) – The path to save the figure and data to.

Returns:

None