# How to plot a "global" legend when using subplots?

**URL:** <https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531>\
**Category:** Visualization\
**Tags:** plots, drive-by-asker\
**Created:** [December 6, 2024, 10:54am UTC](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531 "2024-12-06T10:54:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [December 7, 2024, 6:51am UTC](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531/5 "2024-12-07T06:51:13Z")

</div>

In Plots.jl there are two ways to do this: (i) [using insets](https://discourse.julialang.org/t/subplots-with-one-common-legend/60020/3), (ii) [using layouts](https://discourse.julialang.org/t/subplots-in-plots-jl-with-separate-legend/1968/10).

---

_[View the full topic](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531)._
