Black Lives Matter. Please consider donating to Black Girls Code today.

Smoothing out the edges in heatmap and surface graphs

Hi,

How can I simulate a heatmap of a circle with smooth edges? I’ve given a 61 X 61 matrix to the “Z” axis with “NaN” as value for all points outside the circle, and got this heatmap:

Thanks!

Maybe adding a type: 'circle' layout shape around your heatmap would do the trick: http://codepen.io/etpinard/pen/YWbNzz

1 Like