# Makie: Combine plots into subplots

**URL:** https://discourse.julialang.org/t/makie-combine-plots-into-subplots/62280
**Category:** General Usage
**Tags:** question, plotting, makie
**Created:** [June 2, 2021, 3:32pm UTC](https://discourse.julialang.org/t/makie-combine-plots-into-subplots/62280 "2021-06-02T15:32:51Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [June 2, 2021, 5:19pm UTC](https://discourse.julialang.org/t/makie-combine-plots-into-subplots/62280/4 "2021-06-02T17:19:51Z")

</div>

What I often do currently, because we don’t have subplot level recipes yet, is to make a function that receives either a Figure or a FigurePosition. If there’s no input argument, a new figure is created. This then works for both the single figure and subplot case.

```julia
function myplot(f = Figure())
    Axis(f[1, 1])
    Colorbar(f[1, 2])
    f
end

myplot()
myplot(some_figure[1:2, 3])

```

---

_[View the full topic](https://discourse.julialang.org/t/makie-combine-plots-into-subplots/62280)._
