Skip to content

Commit 38c67e0

Browse files
committed
set zorder=2 in coastlines (issue #188)
1 parent 02a7ee3 commit 38c67e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/test_gaussian.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
def test_gaussian():
2020
fig = plt.figure()
2121
ax = plt.axes(projection=ccrs.PlateCarree(central_longitude=0))
22-
ax.coastlines()
22+
ax.coastlines(zorder=2)
2323
ax.contourf(lons,lats,data,15)
2424
# plot location of every 4th grid point
2525
plt.scatter(lons[::4,::4].ravel(),lats[::4,::4].ravel(),1,marker='o',color='k',zorder=10)

test/test_reglatlon.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def test_reglatlon1():
2323
fig = plt.figure()
2424
ax = plt.axes(projection=ccrs.PlateCarree(central_longitude=0))
25-
ax.coastlines()
25+
ax.coastlines(zorder=2)
2626
ax.contourf(lons,lats,data,15,cmap=plt.cm.hot_r)
2727
plt.title('%s Global Lat/Lon Grid' % grb.name)
2828
return fig
@@ -31,7 +31,7 @@ def test_reglatlon1():
3131
def test_reglatlon2():
3232
fig = plt.figure()
3333
ax = plt.axes(projection=ccrs.PlateCarree(central_longitude=0))
34-
ax.coastlines()
34+
ax.coastlines(zorder=2)
3535
ax.contourf(lons,lats,data2,15)
3636
plt.title('%s Global Lat/Lon Grid' % grb2.name)
3737
return fig
@@ -44,7 +44,7 @@ def test_reglatlon3():
4444
fig = plt.figure()
4545
ax = plt.axes(projection=ccrs.PlateCarree(central_longitude=0))
4646
ax.set_extent([lon1,lon2,lat1,lat2],crs=ccrs.PlateCarree())
47-
ax.coastlines()
47+
ax.coastlines(zorder=2)
4848
ax.contourf(lonsubset,latsubset,datsubset,15,cmap=plt.cm.hot_r)
4949
plt.title('%s Regional Lat/Lon Grid' % grb.name)
5050
return fig

0 commit comments

Comments
 (0)