eradiate.testing.report.figure_to_html#

eradiate.testing.report.figure_to_html(fig)#

Render a figure in HTML format

Returns a string containing the rendered HTML. The root tag is a <svg> one.

Parameters:

fig (plt.Figure) – Matplotlib figure to render in HTML.

Returns:

str – Rendered HTML <svg> tag with styling.