# Subplots in Plots.jl with separate legend

**URL:** <https://discourse.julialang.org/t/subplots-in-plots-jl-with-separate-legend/1968>\
**Category:** Visualization\
**Tags:** question, plots\
**Created:** [February 7, 2017, 9:09pm UTC](https://discourse.julialang.org/t/subplots-in-plots-jl-with-separate-legend/1968 "2017-02-07T21:09:21Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [January 15, 2019, 10:42am UTC](https://discourse.julialang.org/t/subplots-in-plots-jl-with-separate-legend/1968/10 "2019-01-15T10:42:03Z")

</div>

You can always hack it together with `layout` and an extra subplot.

```julia
plot(
    plot(rand(100,3), legend = false), 
    plot((1:3)', legend = true, framestyle = :none)
    )

```

---

_[View the full topic](https://discourse.julialang.org/t/subplots-in-plots-jl-with-separate-legend/1968)._
