# In case of multiple legends, how to only show one legend?

**URL:** <https://discourse.julialang.org/t/in-case-of-multiple-legends-how-to-only-show-one-legend/43058>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [July 14, 2020, 3:59pm UTC](https://discourse.julialang.org/t/in-case-of-multiple-legends-how-to-only-show-one-legend/43058 "2020-07-14T15:59:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gedankenexperiment](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@gedankenexperiment](https://discourse.julialang.org/u/gedankenexperiment)\
**Post date:** [July 14, 2020, 3:59pm UTC](https://discourse.julialang.org/t/in-case-of-multiple-legends-how-to-only-show-one-legend/43058/1 "2020-07-14T15:59:32Z")

</div>

When I group for one variable and fill for another variable, legends for both are shown. It would be easiest if one could simply write `legend=:colname` to select the variable for which a legend should be shown. How can I do this in general? Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [July 14, 2020, 5:32pm UTC](https://discourse.julialang.org/t/in-case-of-multiple-legends-how-to-only-show-one-legend/43058/2 "2020-07-14T17:32:48Z")

</div>

Which plotting package and what type of plot are you looking at? A MWE would be helpful.
