diff --git a/modules/util/plot.py b/modules/util/plot.py index 742dca0526e018500e840fcb5f57f6aae7cde081..ae274fb7a4e17dc06369cfb75c7e58f1dcdea6b9 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)