exa.core.analyze_result.plot_definition.wrap_mpl_plot

Contents

exa.core.analyze_result.plot_definition.wrap_mpl_plot#

wrap_mpl_plot(function)#

A decorator that changes a function to return an EXA figure instead of a matplotlib figure.

Meant to be used if an original plotting function returns a matplotlib figure and should be made compatible with PlotDefinition.

Parameters:

function (Callable[[...], Figure])

Return type:

Callable[[…], Figure]