# How to display two plots?

**URL:** <https://discourse.julialang.org/t/how-to-display-two-plots/84355>\
**Category:** General Usage\
**Tags:** question, package, plots, controlsystems\
**Created:** [July 17, 2022, 12:44pm UTC](https://discourse.julialang.org/t/how-to-display-two-plots/84355 "2022-07-17T12:44:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [July 17, 2022, 12:44pm UTC](https://discourse.julialang.org/t/how-to-display-two-plots/84355/1 "2022-07-17T12:44:08Z")

</div>

How can I plot two plots on the screen? This does not work:

```julia
using ControlSystems, Plots

P₀ = tf(1.0, [1, 1])
p1=bodeplot(P₀)
display(p1)
p2=plot(step(P₀))
display(p2)

```

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [July 17, 2022, 12:51pm UTC](https://discourse.julialang.org/t/how-to-display-two-plots/84355/2 "2022-07-17T12:51:32Z")

</div>

Is this [the same question](https://discourse.julialang.org/t/how-to-display-multiple-plot-windows/82246) as last month?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [July 17, 2022, 12:58pm UTC](https://discourse.julialang.org/t/how-to-display-two-plots/84355/3 "2022-07-17T12:58:56Z")

</div>

The same question, but in a different context, so I don’t think the answer from last month works here, because ControlSystems uses recipes…

One new question would be: Can I combine both plots in one without changing the default backend?

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [July 17, 2022, 4:14pm UTC](https://discourse.julialang.org/t/how-to-display-two-plots/84355/4 "2022-07-17T16:14:55Z")

</div>

> [@ufechner7](#):
>
> Can I combine both plots in one without changing the default backend?

`plot(p1, p2)`

Or if you would like to have the step-response in the upper right corner:

```julia
p3 = plot(framestyle=:none) # blank dummy plot
l = @layout [a{0.5w} [b{0.5h}; c]]
plot(p1, p2, p3, layout=l)

```

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [July 17, 2022, 4:44pm UTC](https://discourse.julialang.org/t/how-to-display-two-plots/84355/5 "2022-07-17T16:44:51Z")

</div>

Thanks a lot!
