From 7d580df501d8aa94a1374a0a52c3e95d7b784081 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 17 May 2022 10:25:16 -0500
Subject: [PATCH] snapshot...

---
 modules/util/plot.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/util/plot.py b/modules/util/plot.py
index 41040f7a..dbfac248 100644
--- a/modules/util/plot.py
+++ b/modules/util/plot.py
@@ -157,7 +157,7 @@ def plot_roc_curve(correct_labels, prob_pos_class):
     plt.savefig('/home/rink/test_roc', dpi=320)
 
 
-def plot_image(image, fname=None, cmap='Greys', vmin=-1.5, vmax=2.5):
+def plot_image(image, fname=None, cmap='Greys', vmin=None, vmax=None):
     Fig, ax = plt.subplots()
 
     # Plot the image
@@ -187,8 +187,8 @@ def plot_image(image, fname=None, cmap='Greys', vmin=-1.5, vmax=2.5):
         Fig.show()
 
     # Wrap up
-    Fig.clf()  # Otherwise fig stays open every time
-    plt.close()  # Close current figure
+    #Fig.clf()  # Otherwise fig stays open every time
+    #plt.close()  # Close current figure
     # plt.close('all')
 
 
-- 
GitLab