我有以下美国的形状文件file。你知道吗
我试着用下面的代码根据每个州的人口来绘制形状文件并给它上色:
import geopandas as gpd
import geoplot
fname = "states.json"
us = gpd.read_file(fname)
geoplot.choropleth(
us, hue=population_mean['POPEST2016_CIV'],
cmap='Blues', figsize=(8, 4)
)
但是,我好像没有得到正确的颜色。例如,最高的种群有最暗的阴影。你知道吗
样本输出:
谢谢
更新:
我通过合并解决了
相关问题 更多 >
编程相关推荐