<jupyter_start><jupyter_text>Custom Scatter<jupyter_code>%matplotlib inline
import plotly.offline as pyo
import plotly.graph_objects as go
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
plt.style.use('ggplot')
bitcoin = pd.read_csv('data/bitcoin-usd.csv', parse_dates=['date'], index_col='date')
bitcoin.head()
data = [
    go.Scatter(
      x = bitcoin.index,
      y = bitcoin[col],
      name=col,
      mode='markers',
      marker=dict(
         size=15,
         color='rgb(88,188,255)',
         symbol = 100,
         line=dict(
             width=1
         )
      )
    ) for col in bitcoin.columns if col == 'close'
]
layout = go.Layout(
    title='Close',
    xaxis=dict(title='Date'),
    yaxis=dict(title='Close')
)
fig = go.Figure(data=data, layout=layout)
pyo.plot(fig)<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup