Contour legend entry does not show line color

I’m plotting contours without markers, and the legend doesn’t show the line style. Scatter traces on the same plot with markers show the line. I can’t find any other options for styling the legend entry.

image

It seems to be working in this demo.
Am I missing something?

1 Like

I guess I never got the notification, but I did the same search and arrived at my own question again. The key syntax that fixed it was “coloring” : “none”, then applying the color in the “line object”:

"contours": {"coloring": "none"},
"line": {
   "color": "red",
   "width": 4,
   },