# Confusing plot titles with subplots

**URL:** <https://discourse.julialang.org/t/confusing-plot-titles-with-subplots/83127>\
**Category:** General Usage\
**Tags:** question, plotting\
**Created:** [June 21, 2022, 2:16pm UTC](https://discourse.julialang.org/t/confusing-plot-titles-with-subplots/83127 "2022-06-21T14:16:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![polhager](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/polhager/32/37340_2.png) [@polhager](https://discourse.julialang.org/u/polhager)\
**Post date:** [June 21, 2022, 2:16pm UTC](https://discourse.julialang.org/t/confusing-plot-titles-with-subplots/83127/1 "2022-06-21T14:16:53Z")

</div>

Hello! I am trying to create a few rows of subplots, each row containing the same number of subplots as well as a title. I have done this with nested plots of lists.

```julia
using Plots
plotly()

x = 0:0.01:10

n = 3
m = 5

plots = []

for i in 1:m
    ps = []
    for j in 1:n
        y = sin.(j*i*x/2pi)
        p = plot(x, y)
        push!(ps, p)
    end
    pp = plot(ps..., layout=(1, n), plot_title="Row number $(i)")
    push!(plots, pp)
end

plot(plots..., layout=(m,1), legend=false)

```

 ![Capture](https://global.discourse-cdn.com/julialang/original/3X/4/1/41f114088066baca8682693c23848ca71ba34533.png)

This works well, except for one thing. The row titles should number up, each saying `Row number $(i)`. However, the top title does not say `Row number 1`, but rather is the same as the bottom title (in the above case, it says `Row number 5`. One can plot the elements of `plots` individually, and the first element will indeed have the title `Row number 1`. I do not understand why this happens, and I do not know how to fix it. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [June 21, 2022, 5:23pm UTC](https://discourse.julialang.org/t/confusing-plot-titles-with-subplots/83127/2 "2022-06-21T17:23:49Z")

</div>

Thats should be fixed on current Plots#master, upcoming version 1.30.2.
