以HTML形式嵌入

plot from API

以iframe形式嵌入

import plotly.plotly as py
from plotly.graph_objs import *

trace0 = Scatter(
    x=[1, 2, 3, 4],
    y=[10, 15, 13, 17],
    mode='markers'
)
trace1 = Scatter(
    x=[1, 2, 3, 4],
    y=[16, 5, 11, 9]
)
data = Data([trace0, trace1])

py.iplot(data)
Last modification:March 22nd, 2020 at 06:41 pm
如果觉得我的文章对你有用,请用红包鼓励我啊~