From a67615d5adee63a8cd9d2816a29326f6487bf2c4 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sun, 30 Jan 2022 11:40:14 -0600
Subject: [PATCH] snapshot...

---
 modules/util/plot.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/modules/util/plot.py b/modules/util/plot.py
index 742dca05..ae274fb7 100644
--- a/modules/util/plot.py
+++ b/modules/util/plot.py
@@ -238,9 +238,10 @@ def make_icing_image(h5f, probs, ice_lons, ice_lats, clvrx_str_time, satellite,
         else:
             ax.set_extent(extent, crs=ccrs.PlateCarree())
     if bg_image is not None:
-        ax.imshow(bg_image, origin='upper', extent=(xmin, xmax, ymin, ymax), cmap='Greys', transform=geos)
+        bg_im = ax.imshow(bg_image, origin='upper', extent=(xmin, xmax, ymin, ymax), cmap='Greys', transform=geos)
     if probs is not None:
-        ax.imshow(probs, cmap='Purples', origin='upper', extent=(xmin, xmax, ymin, ymax), vmin=0.55, vmax=1.0, transform=geos)
+        p_im = ax.imshow(probs, cmap='Purples', origin='upper', extent=(xmin, xmax, ymin, ymax),
+                         vmin=0.20, vmax=1.0, alpha=0.8, transform=geos)
     ax.coastlines(resolution='50m', color='green', linewidth=1.50)
     # ax.add_feature(ccrs.cartopy.feature.STATES, linewidth=0.25)
 
@@ -249,9 +250,11 @@ def make_icing_image(h5f, probs, ice_lons, ice_lats, clvrx_str_time, satellite,
     if ice_lats_vld is not None:
         ax.scatter(ice_lons_vld, ice_lats_vld, s=180.0, marker='o', color='red', transform=ccrs.PlateCarree())
 
-    title = satellite+', '+clvrx_str_time+'  >55% Probability Icing'
+    title = satellite+', '+clvrx_str_time+'  >50% Probability Icing'
     plt.title(title, loc='left', fontweight='bold', fontsize=24)
-    plt.colorbar()
+    cbar = plt.colorbar(p_im)
+    cbar.ax.tick_params(labelsize=10)
+
     ImageDirAndName = os.path.join(homedir, imagename+'_'+clvrx_str_time)
     fig.savefig(ImageDirAndName)
 
-- 
GitLab