<reponame>yanboyang713/crossLanguageSentimentAnalysis
import plotly.plotly as py
import plotly.graph_objs as go
'''
trace = go.Heatmap(z=[[1, 20, 30, 50, 1], [20, 1, 60, 80, 30], [30, 60, 1, -10, 20]],
                   x=['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
)

'''
trace = go.Heatmap(z=[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 5, 8, 32, 18, 49, 145, 257, 140, 188, 121, 82, 64, 43, 18, 3, 8],
[0, 0, 1, 1, 5, 8, 21, 47, 45, 110, 275, 353, 161, 216, 161, 97, 91, 43, 23, 8, 24],
[0, 0, 0, 0, 5, 6, 22, 43, 56, 96, 249, 295, 143, 257, 99, 64, 60, 25, 16, 6, 12],
[0, 0, 1, 2, 7, 9, 28, 43, 34, 103, 239, 297, 122, 136, 99, 74, 59, 34, 31, 8, 9],
[0, 0, 2, 3, 11, 11, 36, 40, 63, 106, 288, 318, 161, 146, 95, 80, 68, 38, 38, 10, 4],
[0, 0, 1, 3, 14, 20, 56, 81, 103, 133, 346, 416, 184, 170, 125, 91, 73, 53, 44, 9, 10],
[0, 0, 1, 2, 15, 22, 77, 100, 133, 209, 427, 461, 195, 184, 121, 99, 87, 66, 63, 12, 11],
[0, 1, 2, 4, 22, 36, 73, 115, 136, 218, 579, 583, 250, 192, 139, 123, 100, 85, 68, 15, 13],
[0, 2, 1, 6, 16, 35, 88, 153, 201, 288, 760, 795, 258, 234, 178, 124, 96, 94, 73, 21, 82],
[1, 2, 7, 20, 56, 110, 208, 392, 524, 745, 1643, 1634, 621, 464, 339, 247, 229, 195, 130, 29, 215],
[0, 1, 2, 13, 24, 59, 72, 143, 257, 327, 658, 570, 273, 203, 166, 95, 96, 84, 57, 8, 12],
[0, 1, 2, 9, 17, 48, 81, 123, 240, 355, 584, 600, 287, 180, 134, 110, 82, 48, 41, 4, 14],
[0, 0, 5, 9, 19, 42, 72, 128, 194, 293, 613, 493, 207, 171, 112, 77, 56, 37, 31, 2, 11],
[0, 0, 4, 5, 16, 17, 57, 109, 166, 256, 546, 526, 219, 170, 119, 58, 53, 32, 20, 1, 8],
[0, 0, 0, 4, 9, 20, 62, 86, 136, 236, 444, 453, 164, 108, 95, 53, 31, 21, 10, 2, 8],
[0, 1, 0, 8, 10, 26, 73, 89, 128, 220, 445, 431, 151, 145, 86, 42, 35, 12, 4, 0, 15],
[1, 0, 2, 6, 12, 25, 53, 73, 135, 234, 432, 419, 181, 128, 89, 42, 27, 16, 8, 0, 9],
[0, 0, 0, 2, 9, 18, 48, 89, 146, 270, 535, 479, 189, 138, 94, 51, 29, 25, 5, 1, 33],
[1, 0, 0, 2, 7, 12, 38, 76, 101, 173, 468, 479, 161, 94, 51, 33, 18, 9, 1, 2, 38],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
,
                   x=['-1', '-0.9', '-0.8', '-0.7', '-0.6', '-0.5', '-0.4', '-0.3', '-0.2', '-0.1', '0', '0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1'],

                   y=['1', '0.9', '0.8', '0.7', '0.6', '0.5', '0.4', '0.3', '0.2', '0.1', '0', '-0.1', '-0.2', '-0.3', '-0.4', '-0.5', '-0.6', '-0.7', '-0.8', '-0.9', '-1'],
)

data=[trace]
py.iplot(data, filename='baiduTranslatedData')
