Plotly Scattermapbox 文本字体系列不会改变

问题描述

我想以特定字体向我的地图添加文本。即使我使用基本的 HTML 字体进行测试,地图中的文本也不会改变。但是,我可以更改悬停字体。什么地方出了错?还是bug?

fig = go.figure(go.ScattermapBox(
        lat=[51.555606],lon=[5.090819],mode="markers+text",showlegend=False,text=['Test'],textposition='top right',textfont=dict(size=25,color='black',family='Courier New'),hoverlabel=dict(font=dict(family='Courier New',size=25)),marker=dict(size=20)))

fig.update_layout(mapBox=dict(zoom=11.5,center={"lat": 51.57,"lon": 5.07},accesstoken=token))

输出

Image of output figure

带有悬停的输出图形,使用 Courier New

Image of output figure with hover,which uses Courier New

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)