要与plotly一起使用的locationmode列表

2024-05-29 06:55:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要对分布在巴西(我的国家)的数据进行图形化表示。在

我发现plotly可以完成这项工作,但是当我去研究如何巧妙地使用时,每个教程都将locationmode属性用作“USA states”。在

有没有国家代码的清单,这样我就可以去看看哪种方式是正确的?在


Tags: 数据代码属性方式教程plotly国家states
1条回答
网友
1楼 · 发布于 2024-05-29 06:55:38

来自文档:https://plot.ly/python/reference/#scattergeo-locationmode

locationmode ( enumerated : "ISO-3" | "USA-states" | "country names" ) 
default: "ISO-3" 
Determines the set of locations used to match entries in `locations` to regions on the map.

因此,对于巴西,您必须添加以下行:

^{pr2}$

相关问题 更多 >

    热门问题