# Display marker symbol instead of colour in plotly legend

**URL:** <https://community.plotly.com/t/display-marker-symbol-instead-of-colour-in-plotly-legend/41006>\
**Category:** 📊 Plotly Python\
**Created:** [June 14, 2020, 8:02am UTC](https://community.plotly.com/t/display-marker-symbol-instead-of-colour-in-plotly-legend/41006 "2020-06-14T08:02:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulrajpl](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/rahulrajpl/32/9039_2.png) [@rahulrajpl](https://community.plotly.com/u/rahulrajpl)\
**Post date:** [June 14, 2020, 8:02am UTC](https://community.plotly.com/t/display-marker-symbol-instead-of-colour-in-plotly-legend/41006/1 "2020-06-14T08:02:08Z")

</div>

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?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/9/90ee4b377b410c607f22056ee6a9105fc460ae85.png)

---

<div class="post-metadata">

**Author:** ![rahulrajpl](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/rahulrajpl/32/9039_2.png) [@rahulrajpl](https://community.plotly.com/u/rahulrajpl)\
**Post date:** [June 14, 2020, 8:24am UTC](https://community.plotly.com/t/display-marker-symbol-instead-of-colour-in-plotly-legend/41006/2 "2020-06-14T08:24:17Z")

</div>

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

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

```

in layout.

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

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/8/8c8844b8233c36aaf00e084aedd8f4f698858d88.png)
