Fix deprecated xlabels_top and ylabels_right

Use top_labels and right_labels instead
This commit is contained in:
srcarter3 2020-09-03 15:17:56 -06:00 committed by GitHub
parent 1df14e605b
commit 441e686e0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@
" ax.set_extent(bbox)\n", " ax.set_extent(bbox)\n",
" ax.coastlines(resolution='50m')\n", " ax.coastlines(resolution='50m')\n",
" gl = ax.gridlines(draw_labels=True)\n", " gl = ax.gridlines(draw_labels=True)\n",
" gl.xlabels_top = gl.ylabels_right = False\n", " gl.top_labels = gl.right_labels = False\n",
" gl.xformatter = LONGITUDE_FORMATTER\n", " gl.xformatter = LONGITUDE_FORMATTER\n",
" gl.yformatter = LATITUDE_FORMATTER\n", " gl.yformatter = LATITUDE_FORMATTER\n",
" return fig, ax" " return fig, ax"