From 3f3b8be923a9c0abda10fbc6f002ceb048c8e7f2 Mon Sep 17 00:00:00 2001 From: marceloprates Date: Wed, 16 Nov 2022 10:41:53 -0300 Subject: [PATCH] Fixed problem with prettymaps.plot() 'save_as' parameter --- prettymaps/draw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prettymaps/draw.py b/prettymaps/draw.py index 090cfd3..e5fcb6c 100644 --- a/prettymaps/draw.py +++ b/prettymaps/draw.py @@ -976,7 +976,7 @@ def plot( ) # Save result if save_as: - img.save(save_as) + plt.savefig(save_as) if not show: plt.close()