Display marker symbol instead of colour in plotly legend

The below image shows legend as different colors that are automatically set. I have given different symbols for each trace. How Do it show the respective symbol in legend?

Sorry for the confusion, I realized if symbols are set, legend will show that as well. I have corrected the legend symbol size by setting

legend= {'itemsizing': 'constant'})

in layout.

I will keep this post here as it may helps someone.

2 Likes