Skip to content

Commit

Permalink
Merge pull request #415 from NCAR/overlay11_issues
Browse files Browse the repository at this point in the history
Addressing build failures
  • Loading branch information
michaelavs committed Sep 27, 2021
2 parents 5ed9a1d + b62df12 commit 3821684
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Plots/MapProjections/NCL_proj_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@
fig = plt.figure(figsize=(10, 10))

# Generate axes using Cartopy and draw coastlines
ax = plt.axes(projection=ccrs.Mercator(min_latitude=-84.5))
ax = plt.axes(
projection=ccrs.Mercator(central_longitude=0, min_latitude=-87.8638))

# Add coastlines
ax.coastlines(linewidths=0.5)

# Set extent to include latitudes from -90 to 89 and longitudes from -180
# to 180
ax.set_extent([180, -180, -90, 89], ccrs.PlateCarree())
# Set extent of the projection
ax.set_extent([0, 359, -84.5, 89], crs=ccrs.PlateCarree())

# Draw gridlines
gl = ax.gridlines(crs=ccrs.PlateCarree(), linewidth=1, color='black', alpha=0.5)
Expand Down

0 comments on commit 3821684

Please sign in to comment.