figout

popurri.plotutils.figout(fig, sv=True, filout='test', svext=['pdf'], sh=False, cl=True)

Save or display a figure.

Parameters:
figmatplotlib.figure.Figure

The figure to be saved or displayed.

svbool, optional

Whether to save the figure. Default is True.

filoutstr, optional

The base filename for saving the figure. Default is ‘test’.

svextlist, optional

List of extensions to save the figure, e.g. svext=[‘png’, ‘pdf’]. Default is [‘pdf’].

shbool, optional

Whether to display the figure. Default is False.

clbool, optional

Whether to close the figure after saving or displaying. Default is True.

Returns:
None