Skip to content
Snippets Groups Projects
Commit e8a8148f authored by tomrink's avatar tomrink
Browse files

minor

parent 7490d84b
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment