创建一个图用Plot.ly

In []:
import plotly
import plotly.plotly as py
from plotly.graph_objs import *

py.sign_in("ShenHenry", "9jmux49p27")

data = Data([
    Heatmap(
        z=[[1, 20, 30], [20, 1, 60], [30, 60, 1]]
    )
])
py.iplot(data, filename='basic-heatmap')
In [7]:
1+1
Out[7]:
2
In []: