Hi there,
I’m new to plotly I’ve tried several times to upload a simple csv from ipython, the problem is that the graph is blank when I click view but I can see them when I click edit.
I also wonder if the creation of new graph is only possible interatively ie. using ipython vs python. It doesn’t seems to be working when calling the program from the python interpreter
and this is the program straight from the example:
import pandas as pd
import numpy as np
import plotly.plotly as py
import plotly.graph_objs as go
df = pd.read_csv('log.csv')
#df.head()
lab_x='Timestamp'
lab_y='c'
trace1 = go.Scatter( x=df[lab_x], y=df[lab_y],
mode='lines', name='values' )
layout = go.Layout(title='my csv data',
plot_bgcolor='rgb(230, 230,230)')
fig = go.Figure(data=[trace1], layout=layout)
py.iplot(fig, filename='plot-my-csv')