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

Contour plot legend

I’m trying to hide the Plotly.js created legend for the contour plot.

I set the showlegend: false in the layout object as well as in the trace object, but for some reason it ignores that setting and still draws the legend (although partially visible).

You can see an example here:

Maybe all you need is setting showscale: false similar to this demo?

Thanks, that was it.

1 Like