I am trying to familiarize myself with creating geographic plots in Python using
geoplot. So I am working my way through tutorials and documentation.
Currently, I am looking at the user guide for geoplot, but the created plot and the underlying map are misaligned. I am using Windows 10, Python 3.7 (no Anaconda), and am running inside Jupyter.
Here is the code
%matplotlib inline import geopandas as gpd import geoplot as gplt import geoplot.crs as gcrs continental_usa_cities = gpd.read_file(gplt.datasets.get_path('usa_cities')) continental_usa_cities = continental_usa_cities.query('STATE not in ["AK", "HI", "PR"]') contiguous_usa = gpd.read_file(gplt.datasets.get_path('contiguous_usa')) ax = gplt.webmap(contiguous_usa, projection=gcrs.WebMercator()) gplt.pointplot(continental_usa_cities, ax=ax)
I am getting two future warnings and an image that is misaligned (see screenshot below).
What am I doing wrong, and what I can look at to debug/correct the alignment?