# \#drive-by-asker

**URL:** https://discourse.julialang.org/tag/drive-by-asker/1806.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to plot a "global" legend when using subplots?](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [December 7, 2024, 6:51am UTC](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531 "2024-12-07T06:51:13Z")

</div>

Take this example: using Plots pla = plot(x-\>x^2, title="Plot A", legend=nothing);plot!(x-\>x^3) plb = plot(x-\>x^(1/2), title="Plot B", legend=nothing);plot!(x-\>x^(1/3)) plot(pla,plb,plb,pla,layout=(2,2),plot\_title="Two …
