diff --git a/modules/util/plot.py b/modules/util/plot.py index af08d043aab2a7200e7cf25c424610a7a36d2458..9f7e910421a04ca501d35cd5c63d21eaafc34d67 100644 --- a/modules/util/plot.py +++ b/modules/util/plot.py @@ -190,12 +190,14 @@ def plot_image(image, fname, label, cmap='Greys'): # plt.close('all') -def plot_image2(image, cmap='Greys'): +def plot_image2(image, cmap='Greys', title='BOEING Icing Reports 2018-2020'): fig = plt.figure(figsize=(12, 8)) ax = plt.axes(projection=ccrs.PlateCarree()) img_extent = [-180, 180, -90, 90] - ax.imshow(image, origin='lower', extent=img_extent, transform=ccrs.PlateCarree(), cmap=cmap, vmin=-1.5, vmax=2.5) - ax.coastlines(resolution='50m', color='blue', linewidth=1) + ax.imshow(image, origin='lower', extent=img_extent, transform=ccrs.PlateCarree(), cmap=cmap, vmin=0.1, vmax=1) + ax.coastlines(resolution='50m', color='blue', linewidth=0.5) + + plt.title(title, loc='left', fontweight='bold', fontsize=16) # Save to file ImageDirAndName = os.path.join('/Users/tomrink', 'testimage')