# TLegend with solid line surrounded by dashes

**URL:** <https://root-forum.cern.ch/t/tlegend-with-solid-line-surrounded-by-dashes/40136>\
**Category:** Newbie\
**Created:** [June 29, 2020, 2:33pm UTC](https://root-forum.cern.ch/t/tlegend-with-solid-line-surrounded-by-dashes/40136 "2020-06-29T14:33:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackLindon](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/edb3f5/32.png) [@JackLindon](https://root-forum.cern.ch/u/JackLindon)\
**Post date:** [June 29, 2020, 2:33pm UTC](https://root-forum.cern.ch/t/tlegend-with-solid-line-surrounded-by-dashes/40136/1 "2020-06-29T14:33:39Z")

</div>

Hi, How would I produce a legend entry like the predicted cross-section entry here that has a solid line surrounded by dashes?

[![](https://atlas.web.cern.ch/Atlas/GROUPS/PHYSICS/PUBNOTES/ATL-PHYS-PUB-2018-008/fig_04b.png) ](https://atlas.web.cern.ch/Atlas/GROUPS/PHYSICS/PUBNOTES/ATL-PHYS-PUB-2018-008/fig_04b.png)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [June 29, 2020, 2:40pm UTC](https://root-forum.cern.ch/t/tlegend-with-solid-line-surrounded-by-dashes/40136/2 "2020-06-29T14:40:00Z")

</div>

You will need to draw two dashed lines after the legend drawing.
