How Can We Help?

plotly—Bar and Line Charts

plotly—Bar and Line Charts

The plotly library is simple and highly efficient. You can use it to draw charts.

import plotly.graph_objects as go

fig = go.Figure()

fig.add_trace(

go.Scatter(

x=[0, 1, 2, 3, 4, 5],

y=[1.5, 1, 1.3, 0.7, 0.8, 0.9]

))

fig.add_trace(

go.Bar(

x=[0, 1, 2, 3, 4, 5],

y=[2, 0.5, 0.7, -1.2, 0.3, 0.4]

))

fig.show()