close

close(plot=None)

Close a MAIDR plot and clean up resources.

Parameters

Name Type Description Default
plot Any or None The plot object to close: a matplotlib Figure, Axes or artist, or a seaborn Grid. Plotly, Bokeh and plotnine plots are accepted and need no cleanup. If None, uses the current matplotlib figure. None