Geopandas shapefile 轴与实际图片的比例不同

Geopandas shapefile axis not on same scale as actual picture

我正在学习本教程,一切看起来都一样 https://towardsdatascience.com/geopandas-101-plot-any-data-with-a-latitude-and-longitude-on-a-map-98e01944b972

也就是说,我得到了要显示的地图,数据框看起来格式相同等等。但是,轴比例很奇怪,达到 + 1M,这导致所有点都在 (0,0 ) 协调。有谁知道我做错了什么?应该是正常的long/lat轴

这是我用于街道地图的代码:

street_map = gdp.read_file('/Users/mkjacks5/Documents/projects/Mobile data/data/geo/Maricopa_Street_Local_2013.shp')

这里是情节本身的代码

fig, ax = plt.subplots(figsize=(5,5))

street_map.plot(ax = ax, alpha = 0.4, color = "blue") geo_df.plot(ax= ax, markersize = 50, color = "red", marker = "^", label = "Destination") plt.legend(prop={'size':15})

我正在使用

将长纬度坐标编码为点
crs =   {'init' :'epsg:4326'}

使用

让它工作
crs = from_string("+proj=longlat +datum=WGS84 +no_defs") 
street_map = street_map.to_crs(crs=crs)