Skip to content

Commit c411d5e

Browse files
committed
Update windef.py
1 parent 86866a9 commit c411d5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openpiv/windef.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,12 @@ def func(args):
284284
plt.close("all")
285285
plt.ioff()
286286
Name = os.path.join(save_path, "Image_A%03d.png" % counter)
287-
display_vector_field(
287+
fig, _ = display_vector_field(
288288
os.path.join(save_path, "field_A%03d.txt" % counter),
289289
scale=settings.scale_plot,
290290
)
291291
if settings.save_plot is True:
292-
plt.savefig(Name)
292+
fig.savefig(Name)
293293
if settings.show_plot is True:
294294
plt.show()
295295

0 commit comments

Comments
 (0)