import matplotlib.pyplot as plt
%matplotlib inline
import plotly
import plotly.graph_objs as go
from plotly.offline import init_notebook_mode,iplot
init_notebook_mode(connected=True)
import warnings
warnings.filterwarnings('ignore')
import numpy as np
import pandas as pd
plotly.__version__
接下来我们可以绘制一个plotly的程序,看看到底是什么效果
x = [1,2,3,4]
y = [10,15,13,17]
trace0 = go.Scatter(
x = x,
y = y
)
print(trace0)