From 4c7ee820a661460364537f3d5bde42daaead58b9 Mon Sep 17 00:00:00 2001 From: chrishavlin Date: Fri, 1 Nov 2024 11:25:22 -0500 Subject: [PATCH] fix mpl figure handle access --- scripts/finite_element_zoomin_plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/finite_element_zoomin_plot.py b/scripts/finite_element_zoomin_plot.py index 8b2532e1..aa3dc428 100644 --- a/scripts/finite_element_zoomin_plot.py +++ b/scripts/finite_element_zoomin_plot.py @@ -21,4 +21,4 @@ rect, conn = s1.plots["all", "ux"].axes.indicate_inset(bounds, s2_ax, edgecolor='k', linewidth=1.0) conn[0].set_visible(True) conn[1].set_visible(True) -s1.plots["all", "ux"].savefig("fem_example.png") \ No newline at end of file +s1.plots["all", "ux"].figure.savefig("fem_example.png")