PlotUtils.PlotResult

PlotUtils.PlotResult#

PlotUtils.PlotResult.py

Copyright (c) 2025, SAXS Team, KEK-PF

class PlotResult(fig, axes, **others)#

Bases: object

savefig(filename, **kwargs)#

Save the figure to a file.

See matplotlib.pyplot.savefig for details on the parameters.

close()#

Close the figure.

This is equivalent to calling plt.close(self.fig) in matplotlib. It is useful to free up memory when the figure is no longer needed, especially in Jupyter notebooks where figures will appear in output cells.