2024-05-29 06:55:38 发布
网友
我需要对分布在巴西(我的国家)的数据进行图形化表示。在
我发现plotly可以完成这项工作,但是当我去研究如何巧妙地使用时,每个教程都将locationmode属性用作“USA states”。在
plotly
locationmode
有没有国家代码的清单,这样我就可以去看看哪种方式是正确的?在
来自文档: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.
因此,对于巴西,您必须添加以下行:
来自文档:https://plot.ly/python/reference/#scattergeo-locationmode
因此,对于巴西,您必须添加以下行:
^{pr2}$相关问题 更多 >
编程相关推荐