遇到此错误:
Aw, snap! We didn't get a username with your request.
Don't have an account? https://plot.ly/api_signup
Questions? accounts@plot.ly
代码:
import numpy as np
import pandas as pd
import cufflinks as cf
from plotly.offline import download_plotlyjs,init_notebook_mode,plot,iplot
init_notebook_mode(connected=True)
cf.go_offline()
df=pd.DataFrame({'x':[10,20,30,40,50], 'y':[1,2,3,4,5], 'z':
[400,500,305,502,102]})
print(df)
df.iplot(kind='surface', colorscale='rdylbu')