Skip to content

Commit 530bb61

Browse files
authored
Merge pull request #167 from chrishavlin/fix_fem_zoomin_plot
fix mpl figure handle access
2 parents d3f8937 + 4c7ee82 commit 530bb61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/finite_element_zoomin_plot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
rect, conn = s1.plots["all", "ux"].axes.indicate_inset(bounds, s2_ax, edgecolor='k', linewidth=1.0)
2222
conn[0].set_visible(True)
2323
conn[1].set_visible(True)
24-
s1.plots["all", "ux"].savefig("fem_example.png")
24+
s1.plots["all", "ux"].figure.savefig("fem_example.png")

0 commit comments

Comments
 (0)