Adjust cell line width hexbin - Plotly

问题描述 投票:0回答:0

是否可以使用 Plotly hexbin mapbox 调整单元格线宽?我已经看过 doco,但找不到任何东西。线宽调不了,颜色能调吗?

如果我尝试传递线宽参数,它会返回错误。

df = pd.DataFrame({
       'LAT': [-45,-44,-42,-41,-46,-44,-43,-45,-41,-45,-47],
       'LON': [-70,-71,-72,-72,-73,-74,-71,-70,-72,-70,-72],
       })

fig = ff.create_hexbin_mapbox(data_frame = df,
                                lat = 'LAT', 
                                lon = 'LON',
                                nx_hexagon = 5,
                                opacity = 0.5,
                                labels = {'color': 'Point Count'},
                                linewidth = 0.5,
                                mapbox_style = 'carto-positron',
                                zoom = 4
                                )
fig.show()

输出:

TypeError: create_hexbin_mapbox() got an unexpected keyword argument 'linewidth'
python plotly
© www.soinside.com 2019 - 2024. All rights reserved.