seismometer.plot.mpl.decorators.render_as_svg¶
- seismometer.plot.mpl.decorators.render_as_svg(plot_fn)¶
Given a plot function that retuns a figure, render to SVG and close the Figure
- Parameters:
plot_fn (Callable[..., plt.Figure]) – function that returns a matplotlib figure
- Returns:
function that returns and SVG object
- Return type:
Callable[…, SVG]