Close figures

This commit is contained in:
Felix Blanke 2023-08-29 10:12:04 +02:00
parent dbce381a71
commit 3593f2ecd9

View File

@ -277,6 +277,8 @@ def tables(
annotate_current=annotate_current, annotate_current=annotate_current,
landesbez_str=landesbez_strs, landesbez_str=landesbez_strs,
) )
svg_string = convert_fig_to_svg(fig)
plt.close()
_print_as_html(df_state) _print_as_html(df_state)
_print_as_html(df) _print_as_html(df)
@ -285,7 +287,7 @@ def tables(
"base.html", "base.html",
tables="\n".join(output_str), tables="\n".join(output_str),
timestamp=timestamp, timestamp=timestamp,
image=convert_fig_to_svg(fig), image=svg_string,
) )