我不能告诉你为什么,但你需要指明你
vmin|max
为colormap。我认为geopandas会自动执行此操作,它只是一个小例子,但不适用于你的shapefile:
import geopandas
ax = (
geopandas.read_file(‘/mnt/c/users/phobson/downloads/foo/foo.shp’)
.to_crs({‘init’: ‘epsg:3083’})
.plot(column=”liab”, legend=True, figsize=(10, 4),
vmin=0.0, vmax=1) # <— magic is here
)
</code>