Skip to content

Commit

Permalink
set zorder=2 in coastlines (issue #188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Sep 17, 2021
1 parent 02a7ee3 commit 38c67e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/test_gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def test_gaussian():
fig = plt.figure()
ax = plt.axes(projection=ccrs.PlateCarree(central_longitude=0))
ax.coastlines()
ax.coastlines(zorder=2)
ax.contourf(lons,lats,data,15)
# plot location of every 4th grid point
plt.scatter(lons[::4,::4].ravel(),lats[::4,::4].ravel(),1,marker='o',color='k',zorder=10)
Expand Down
6 changes: 3 additions & 3 deletions test/test_reglatlon.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
def test_reglatlon1():
fig = plt.figure()
ax = plt.axes(projection=ccrs.PlateCarree(central_longitude=0))
ax.coastlines()
ax.coastlines(zorder=2)
ax.contourf(lons,lats,data,15,cmap=plt.cm.hot_r)
plt.title('%s Global Lat/Lon Grid' % grb.name)
return fig
Expand All @@ -31,7 +31,7 @@ def test_reglatlon1():
def test_reglatlon2():
fig = plt.figure()
ax = plt.axes(projection=ccrs.PlateCarree(central_longitude=0))
ax.coastlines()
ax.coastlines(zorder=2)
ax.contourf(lons,lats,data2,15)
plt.title('%s Global Lat/Lon Grid' % grb2.name)
return fig
Expand All @@ -44,7 +44,7 @@ def test_reglatlon3():
fig = plt.figure()
ax = plt.axes(projection=ccrs.PlateCarree(central_longitude=0))
ax.set_extent([lon1,lon2,lat1,lat2],crs=ccrs.PlateCarree())
ax.coastlines()
ax.coastlines(zorder=2)
ax.contourf(lonsubset,latsubset,datsubset,15,cmap=plt.cm.hot_r)
plt.title('%s Regional Lat/Lon Grid' % grb.name)
return fig
Expand Down

0 comments on commit 38c67e0

Please sign in to comment.