# How to make top title in group layout plot?

**URL:** https://discourse.julialang.org/t/how-to-make-top-title-in-group-layout-plot/50046
**Category:** New to Julia
**Tags:** plots, layout-plots
**Created:** [November 12, 2020, 1:02pm UTC](https://discourse.julialang.org/t/how-to-make-top-title-in-group-layout-plot/50046 "2020-11-12T13:02:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)
#### Post date: [November 12, 2020, 1:02pm UTC](https://discourse.julialang.org/t/how-to-make-top-title-in-group-layout-plot/50046/1 "2020-11-12T13:02:47Z")

</div>

Hello!

I have this plot:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/0/b0638d186d449c2ffce9170fb760c40c29b3e5e1.png)

How would I make a title above both of them called “My Plot”?

These are the basic commands I use:

```julia
l = @layout grid(2,1)

pall = plot(p1,p2, layout = l,size=(800,800))

```

If I try using the “title” option in “pall” it changes both of them.

Kind regards

---

<div class="post-metadata">

### Author: ![fbanning](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fbanning/32/14972_2.png) [@fbanning](https://discourse.julialang.org/u/fbanning)
#### Post date: [November 12, 2020, 2:17pm UTC](https://discourse.julialang.org/t/how-to-make-top-title-in-group-layout-plot/50046/2 "2020-11-12T14:17:44Z")

</div>

You’re basically asking for the existing but not yet functional attribute `plot_title` (see: [Plot Attributes · Plots](http://docs.juliaplots.org/latest/generated/attributes_plot/) ). It’s mentioned in the docs. And there are a few open issues about this topic [on github](https://github.com/JuliaPlots/Plots.jl/issues?q=is%3Aissue+is%3Aopen+plot_title).

---

<div class="post-metadata">

### Author: ![ElectronicTeaCup](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/electronicteacup/32/12647_2.png) [@ElectronicTeaCup](https://discourse.julialang.org/u/ElectronicTeaCup)
#### Post date: [November 12, 2020, 3:28pm UTC](https://discourse.julialang.org/t/how-to-make-top-title-in-group-layout-plot/50046/3 "2020-11-12T15:28:25Z")

</div>

A hacky way of doing it was in this [thread](https://discourse.julialang.org/t/super-title-in-plots-and-subplots/29865/3)

```plaintext
title = plot(title = "Plot title", grid = false, showaxis = false, bottom_margin = -25Plots.px)
p1 = scatter(rand(5, 1), title = "Subplot 1")
p2 = scatter(rand(5, 1), title = "Subplot 2")
plot(title, p1, p2, layout = @layout([A{0.01h}; [B C]]))

```

![image](https://global.discourse-cdn.com/julialang/original/3X/8/a/8a8021d03d360086436b585cf02a50a0c29f8a4c.png)
