Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1043 committed Nov 30, 2023
1 parent 9bdba9d commit 8f7a10d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pcmdi_metrics/variability_mode/lib/plot_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,9 @@ def plot_map_cartopy(
# every 1 degree so that the result is smooth:
# https://stackoverflow.com/questions/43463643/cartopy-albersequalarea-limit-region-using-lon-and-lat

# vertices = [
# (lon - 180, lat_min) for lon in range(int(lon_min), int(lon_max + 1), 1)
# ] + [(lon - 180, lat_max) for lon in range(int(lon_max), int(lon_min - 1), -1)]
vertices = [
(lon - 180, lat_min) for lon in range(int(lon_min), int(lon_max), 1)
] + [(lon - 180, lat_max) for lon in range(int(lon_max), int(lon_min), -1)]
(lon - 180, lat_min) for lon in range(int(lon_min), int(lon_max + 1), 1)
] + [(lon - 180, lat_max) for lon in range(int(lon_max), int(lon_min - 1), -1)]
boundary = mpath.Path(vertices)
ax.set_boundary(
boundary, transform=ccrs.PlateCarree(central_longitude=180)
Expand Down

0 comments on commit 8f7a10d

Please sign in to comment.