def test():
"""最简单的plotly绘图
怎么定义浏览器小标签的名称???
"""
x = [1, 2, 3, 4]
y = [4, 5, 6, 7]
fig = go.Figure()
fig.add_trace(go.Scatter(x=x, y=y, name='测试', mode='lines'))
fig.show()
plotly.offline.plot(fig,filename='test')
这个方式输出可以指定标签名
在顶部head标签里面加title标签,给我好评
解决了吗