定义线时,应该可以通过设置shape ='spline'来做到这一点。这是一个阴谋的例子
trace2 = go.Scatter(
x=[1, 2, 3, 4, 5],
y=[6, 8, 7, 8, 6],
mode='lines+markers',
name="'spline'",
text=["tweak line smoothness<br>with 'smoothing' in line object"],
hoverinfo='text+name',
line=dict(
shape='spline'
)
)
在此处查看示例:绘制折线图
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句