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

Smoothing out the edges in heatmap and surface graphs


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:


Maybe adding a type: 'circle' layout shape around your heatmap would do the trick:

1 Like