Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0125· OpenAIAi2 WildChat-4.8M (AI2)

provide a short exampl with plotly

  1. User

    provide a short exampl with plotly

  2. Assistant

    import plotly.graph_objects as go

    Create data

    x = [1, 2, 3, 4, 5] y = [10, 15, 13, 17, 20]

    Create a bar chart

    fig = go.Figure(data=[go.Bar(x=x, y=y)])

    Update layout

    fig.update_layout( title='Bar Chart Example', xaxis_title='X Axis', yaxis_title='Y Axis' )

    Show the figure

    fig.show()