import numpy as np
import plotly.graph_objects as go
import plotly.offline as pyo

x_values = np.linspace(0, 1, 100)  # 100 evenly spaced values
y_values = np.random.randn(100)   # 100 random values

# create traces
trace0 = go.Scatter(
    x=x_values,
    y=y_values+5,
    mode='markers',
    name='markers'
)
trace1 = go.Scatter(
    x=x_values,
    y=y_values,
    mode='lines+markers',
    name='lines+markers'
)
trace2 = go.Scatter(
    x=x_values,
    y=y_values-5,
    mode='lines',
    name='lines'
)
data = [trace0, trace1, trace2]  # assign traces to data
layout = go.Layout(
    title='Line chart showing three different modes'
)
fig = go.Figure(data=data, layout=layout)
pyo.plot(fig)
