Closed lukelbd closed 4 years ago
@lukelbd I just opened a PR with an option to explicitly set a min/max for the gridlines. I think that is probably preferable to just automatically limiting the gridlines to the lon/lat range of the other gridlines, but I'd like to hear your thoughts on it too. I'm definitely open to suggestions on naming as well.
Description
In cartopy 0.17, longitude gridlines were constrained within the region of the minumum and maximum latitude gridlines, and latitude gridlines were constrained within the region of the minimum and maximum longitude gridlines.
This was very useful for "pole" centered projections, as it let people mimic the "latmax" feature used in polar basemap projections. Generally it's nice to have a "hole" around the North and South poles rather than having all the gridlines converge to a single point.
In cartopy v0.18, this gridlining behavior seems to have disappeared -- putting a "hole" around the North and South poles is no longer possible.
Code to reproduce
Results in the following for cartopy 0.17:
And the following for cartopy 0.18:
Full environment definition
### Cartopy version v0.17 and v0.18 ### conda list ``` # packages in environment at /Users/ldavis/miniconda3: # # Name Version Build Channel alabaster 0.7.12 pypi_0 pypi appdirs 1.4.4 pypi_0 pypi appnope 0.1.0 py38h32f6830_1001 conda-forge asttokens 2.0.4 pypi_0 pypi attrs 19.3.0 py_0 conda-forge autopep8 1.5.2 pypi_0 pypi babel 2.8.0 pypi_0 pypi backcall 0.1.0 py_0 conda-forge basemap 1.3.0 py38h9bcff04_2 conda-forge basemap-data-hires 1.2.1 0 conda-forge beautifulsoup4 4.9.0 pypi_0 pypi black 19.10b0 pypi_0 pypi bleach 3.1.5 pyh9f0ad1d_0 conda-forge boost-cpp 1.72.0 hdf9ef73_0 conda-forge brotlipy 0.7.0 py38h64e0658_1000 conda-forge bs4 0.0.1 pypi_0 pypi bzip2 1.0.8 h0b31af3_2 conda-forge ca-certificates 2020.4.5.1 hecc5488_0 conda-forge cairo 1.16.0 hec6a9b0_1003 conda-forge cartopy 0.17.0 py38h9bcff04_1015 conda-forge certifi 2020.4.5.1 py38h32f6830_0 conda-forge cffi 1.14.0 py38h356ff06_0 conda-forge cfgv 3.1.0 pypi_0 pypi cfitsio 3.470 hddc9c06_5 conda-forge cftime 1.1.2 py38h65ad66c_0 conda-forge chardet 3.0.4 py38h32f6830_1006 conda-forge click 7.1.2 pypi_0 pypi climpy 0.0.3.post56+dirty dev_0