I wanted to create a heatmap of a probability density matrix using plotly.
import numpy as np from plotly.offline import download_plotlyjs, init_notebook_mod
You can use the zsmooth argument which can take three values ('fast', 'best', or False). For example:
zsmooth
'fast'
'best'
False
data = [go.Heatmap(z=[[1, 20, 30], [20, 1, 60], [30, 60, 1]], zsmooth = 'best')] iplot(data)
Will give you the following smooth heatmap: