line plotly with shaded area

Solutions on MaxInterview for line plotly with shaded area by the best coders in the world

showing results for - "line plotly with shaded area"
Aarón
10 Jan 2017
1import plotly.graph_objects as go
2
3fig = go.Figure()
4fig.add_trace(go.Scatter(x=[1, 2, 3, 4],
5                         y=[0, 2, 3, 5],
6                         fill='tozeroy')
7             ) # fill down to xaxis
8fig.update_layout(title='<b>Title</b>',
9                  xaxis_title='<b>x</b>',
10                  yaxis_title='<b>y</b>')
11fig.show()