Skip to content

Commit 977d2b7

Browse files
committed
gridlines: fix several old gridlines calls
1 parent d800d87 commit 977d2b7

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

opendrift/readers/basereader/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ def plot(self, variable=None, vmin=None, vmax=None, time=None,
289289
facecolor=cfeature.COLORS['land'],
290290
edgecolor='black')
291291

292-
gl = ax.gridlines(ccrs.PlateCarree(), draw_labels=True, x_inline=False, y_inline=False)
293-
gl.top_labels = False
292+
gl = ax.gridlines(ccrs.PlateCarree(), draw_labels=['left', 'bottom'], x_inline=False, y_inline=False)
294293

295294
# Get boundary
296295
if self.global_coverage():

opendrift/readers/reader_schism_native.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,7 @@ def plot_mesh(self, variable=None, vmin=None, vmax=None,
778778
facecolor=cfeature.COLORS['land'],
779779
edgecolor='black')
780780

781-
gl = ax.gridlines(ccrs.PlateCarree())
782-
gl.xlabels_top = False
781+
gl = ax.gridlines(ccrs.PlateCarree(), draw_labels=['left', 'bottom'])
783782

784783
# Get boundary
785784
npoints = 10 # points per side

0 commit comments

Comments
 (0)