z = [[.1, .3, .5],
[1.0, .8, .6],
[.6, .4, .2]]
x = ['Product A', 'Product B', 'Product C']
y = ['Game Three', 'Game Two', 'Game One']
z_text = [['Good', 'Bad', 'Good'],
['Good', 'Good', 'Bad'],
['Bad', 'Bad', 'Good']]
fig = ff.create_annotated_heatmap(z, x=x, y=y, annotation_text=z_text, colorscale='hot')
# Make text size larger
for i in range(len(fig.layout.annotations)):
fig.layout.annotations[i].font.size = 16
fig.show()