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],
[1, 0, 0, 0, 0, 0, 8, 13, 26, 56, 171, 303, 125, 127, 177, 111, 72, 50, 23, 9, 12],
[0, 0, 0, 1, 3, 9, 19, 29, 43, 93, 240, 390, 182, 172, 159, 129, 88, 33, 18, 7, 19],
[0, 0, 0, 1, 3, 5, 22, 30, 51, 88, 221, 334, 126, 157, 114, 59, 55, 27, 17, 4, 7],
[0, 0, 0, 4, 3, 15, 26, 41, 49, 113, 234, 361, 133, 106, 99, 62, 45, 29, 15, 4, 12],
[0, 0, 0, 0, 4, 13, 28, 53, 60, 146, 316, 357, 148, 124, 87, 76, 48, 31, 27, 9, 7],
[0, 0, 0, 7, 9, 22, 60, 68, 106, 181, 353, 472, 161, 124, 121, 60, 47, 35, 25, 4, 15],
[0, 1, 2, 4, 12, 29, 53, 95, 85, 207, 419, 495, 161, 159, 140, 86, 52, 45, 28, 4, 15],
[1, 0, 1, 6, 20, 28, 60, 110, 163, 251, 517, 614, 193, 147, 144, 112, 72, 43, 37, 9, 34],
[0, 1, 4, 7, 21, 45, 70, 152, 234, 350, 645, 792, 208, 158, 149, 97, 98, 78, 34, 7, 60],
[0, 5, 7, 22, 46, 95, 211, 363, 616, 775, 1386, 1476, 453, 370, 283, 194, 154, 114, 64, 14, 187],
[1, 2, 6, 12, 31, 51, 101, 144, 274, 338, 612, 503, 191, 165, 126, 103, 68, 24, 24, 7, 21],
[1, 1, 4, 20, 24, 50, 94, 154, 236, 366, 585, 488, 201, 164, 98, 85, 66, 40, 19, 4, 19],
[0, 0, 5, 13, 26, 52, 82, 143, 256, 350, 601, 476, 203, 120, 98, 78, 52, 39, 11, 4, 19],
[0, 0, 5, 4, 18, 38, 78, 124, 229, 310, 560, 450, 217, 130, 81, 58, 43, 20, 11, 0, 15],
[0, 2, 2, 6, 17, 30, 49, 98, 227, 272, 510, 472, 152, 143, 98, 70, 45, 32, 10, 3, 16],
[0, 2, 0, 9, 10, 18, 65, 103, 198, 267, 507, 506, 153, 127, 98, 49, 27, 18, 9, 1, 17],
[0, 0, 0, 5, 7, 22, 62, 112, 205, 288, 560, 520, 171, 163, 83, 48, 35, 15, 7, 2, 22],
[0, 0, 3, 8, 12, 15, 60, 101, 173, 296, 659, 669, 197, 168, 102, 65, 38, 19, 5, 1, 35],
[0, 1, 0, 3, 5, 12, 38, 85, 151, 297, 631, 767, 200, 119, 79, 59, 25, 16, 8, 0, 58],
[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='googleTranslatedData')

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],
[1, 0, 0, 0, 0, 0, 8, 13, 26, 56, 171, 303, 125, 127, 177, 111, 72, 50, 23, 9, 12],
[0, 0, 0, 1, 3, 9, 19, 29, 43, 93, 240, 390, 182, 172, 159, 129, 88, 33, 18, 7, 19],
[0, 0, 0, 1, 3, 5, 22, 30, 51, 88, 221, 334, 126, 157, 114, 59, 55, 27, 17, 4, 7],
[0, 0, 0, 4, 3, 15, 26, 41, 49, 113, 234, 361, 133, 106, 99, 62, 45, 29, 15, 4, 12],
[0, 0, 0, 0, 4, 13, 28, 53, 60, 146, 316, 357, 148, 124, 87, 76, 48, 31, 27, 9, 7],
[0, 0, 0, 7, 9, 22, 60, 68, 106, 181, 353, 472, 161, 124, 121, 60, 47, 35, 25, 4, 15],
[0, 1, 2, 4, 12, 29, 53, 95, 85, 207, 419, 495, 161, 159, 140, 86, 52, 45, 28, 4, 15],
[1, 0, 1, 6, 20, 28, 60, 110, 163, 251, 517, 614, 193, 147, 144, 112, 72, 43, 37, 9, 34],
[0, 1, 4, 7, 21, 45, 70, 152, 234, 350, 645, 792, 208, 158, 149, 97, 98, 78, 34, 7, 60],
[0, 5, 7, 22, 46, 95, 211, 363, 616, 775, 1386, 1476, 453, 370, 283, 194, 154, 114, 64, 14, 187],
[1, 2, 6, 12, 31, 51, 101, 144, 274, 338, 612, 503, 191, 165, 126, 103, 68, 24, 24, 7, 21],
[1, 1, 4, 20, 24, 50, 94, 154, 236, 366, 585, 488, 201, 164, 98, 85, 66, 40, 19, 4, 19],
[0, 0, 5, 13, 26, 52, 82, 143, 256, 350, 601, 476, 203, 120, 98, 78, 52, 39, 11, 4, 19],
[0, 0, 5, 4, 18, 38, 78, 124, 229, 310, 560, 450, 217, 130, 81, 58, 43, 20, 11, 0, 15],
[0, 2, 2, 6, 17, 30, 49, 98, 227, 272, 510, 472, 152, 143, 98, 70, 45, 32, 10, 3, 16],
[0, 2, 0, 9, 10, 18, 65, 103, 198, 267, 507, 506, 153, 127, 98, 49, 27, 18, 9, 1, 17],
[0, 0, 0, 5, 7, 22, 62, 112, 205, 288, 560, 520, 171, 163, 83, 48, 35, 15, 7, 2, 22],
[0, 0, 3, 8, 12, 15, 60, 101, 173, 296, 659, 669, 197, 168, 102, 65, 38, 19, 5, 1, 35],
[0, 1, 0, 3, 5, 12, 38, 85, 151, 297, 631, 767, 200, 119, 79, 59, 25, 16, 8, 0, 58],
[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='googleTranslatedData')

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'], )