subplots dash plotly

Solutions on MaxInterview for subplots dash plotly by the best coders in the world

showing results for - "subplots dash plotly"
Elena
25 May 2016
1from plotly.subplots import make_subplots
2import plotly.graph_objects as go
3
4fig = make_subplots(rows=1, cols=2)
5
6fig.add_trace(
7    go.Scatter(x=[1, 2, 3], y=[4, 5, 6]),
8    row=1, col=1
9)
10
11fig.add_trace(
12    go.Scatter(x=[20, 30, 40], y=[50, 60, 70]),
13    row=1, col=2
14)
15
16fig.update_layout(height=600, width=800, title_text="Side By Side Subplots")
17fig.show()
18