📜  带阴影区域的线条 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:18.248000             🧑  作者: Mango

代码示例1
import plotly.graph_objects as go

fig = go.Figure()
fig.add_trace(go.Scatter(x=[1, 2, 3, 4],
                         y=[0, 2, 3, 5],
                         fill='tozeroy')
             ) # fill down to xaxis
fig.update_layout(title='Title',
                  xaxis_title='x',
                  yaxis_title='y')
fig.show()