ISEPOS-2373 Fix: name 'svg_path' is not defined

This commit is contained in:
Mieszko Makuch 2025-05-07 12:52:06 +02:00
parent 8f1ab5518a
commit 22fc9f7c07

View File

@ -505,7 +505,8 @@ verbose: {verbose}")
# Save the figure
fig.canvas.draw()
plt.savefig("overlay_" + str(j) + ".svg", bbox_inches="tight", pad_inches=0, transparent=True)
svg_path = f"overlay_{j}.svg"
plt.savefig(svg_path, bbox_inches="tight", pad_inches=0, transparent=True)
plt.close(fig)