使用纬度和经度在 plotly 中创建 Choropleth 地图

Creating Choropleth map in plotly with latitude and longitude

我想知道是否可以使用 python 中的 plotly 以纬度和经度作为位置来创建等值线图。在这种情况下,位置模式是什么?

因为我应该阅读 plotly docs, parameter locationmode would be countrynames. That means, you should see the full world map or chunks of map, depends on your passed data. This example 可以显示非洲地图。所以如果你想要 select 特定的国家,你可以在 Scattergeo 中查看和设置必要的参数(lonlat),在那里你可以根据需要选择经度和纬度