plotly 笔记

  1. 常用语句
import plotly
print(plotly.__version__)
plotly.offline.init_notebook_mode() # run at the start of every notebook

* initiate the Plotly Notebook*

init_notebook_mode(connected=True)
import cufflinks as cf
iplot(cf.datagen.lines().iplot(asFigure=True, kind='scatter', xTitle='Dates', yTitle='Returns', title='Returns'))

cf.datagen.lines()可以换成dataframe
All methods in plotly.plotly

help(plotly.offline.iplot)
help(plotly.offline.plot)

猜你喜欢

转载自blog.csdn.net/lotusws/article/details/78239128