【问题标题】:Plotly Geographical mapping, set locationmode="IN"Plotly 地理映射,设置 locationmode="IN"
【发布时间】:2018-01-03 09:44:24
【问题描述】:

就像地理绘图中有一个“美国州”作为位置模式一样,印度有什么东西吗?

data = dict(type = 'choropleth',
        locations = ['AZ','CA','NY'],
        locationmode = 'USA-states',
        colorscale= 'Portland',
        text= ['text1','text2','text3'],
        z=[1.0,2.0,3.0],
        colorbar = {'title':'Colorbar Title'})

【问题讨论】:

标签: python pandas data-analysis


【解决方案1】:

在做了一些研究后,我也在寻找同样的问题的解决方案,我发现三个列出的参数中只有一个可以在 locationmode 中传递,即 1.'ISO-3'(默认情况下)2.'USA- states' 3.'country names'.however 你可以使用 layout = dict(geo={'scope':'asia'}) 来查看印度地图。这里有一个链接https://plot.ly/python/reference/#choropleth-locationmode

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-26
    • 2020-04-29
    • 2022-09-24
    • 1970-01-01
    相关资源
    最近更新 更多