# Is the Plots.jl layout broken?

**URL:** <https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819>\
**Category:** Visualization\
**Tags:** plots, layout-plots\
**Created:** [February 4, 2022, 7:03pm UTC](https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819 "2022-02-04T19:03:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamWysokinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adamwysokinski/32/206422_2.png) [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Post date:** [February 4, 2022, 7:03pm UTC](https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819/1 "2022-02-04T19:03:17Z")

</div>

Hi,  
All packages updated, using gr() backend, the command

```julia
plot(margins=0cm, layout=@layout [a{0.125h} b;c])

```

gives the following result:

 ![gr](https://global.discourse-cdn.com/julialang/original/3X/3/7/379e6d4e351eb70f54b9f5954bd0d1fcb7f3210d.png)

using pyplot() the result is slightly better, but still far from good:

 ![pyplot](https://global.discourse-cdn.com/julialang/original/3X/f/0/f0a488659395acff660266a9666d8597dcc4dced.png)

How to tighten the layout – something like `matplotlib.pyplot.tight_layout()` ?

---

<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:** [February 4, 2022, 7:46pm UTC](https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819/3 "2022-02-04T19:46:11Z")

</div>

It seems to work with `@layout [a b; c{0.875h}]`:

 ![Plots_layout_tight](https://global.discourse-cdn.com/julialang/original/3X/5/e/5eae36df92caeff2b37e7441232679df22f7880b.png)

---

<div class="post-metadata">

**Author:** ![AdamWysokinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adamwysokinski/32/206422_2.png) [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Post date:** [February 4, 2022, 8:17pm UTC](https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819/4 "2022-02-04T20:17:27Z")

</div>

Which 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:** [February 4, 2022, 8:22pm UTC](https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819/5 "2022-02-04T20:22:17Z")

</div>

`gr()`

---

<div class="post-metadata">

**Author:** ![AdamWysokinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adamwysokinski/32/206422_2.png) [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Post date:** [February 4, 2022, 8:34pm UTC](https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819/6 "2022-02-04T20:34:15Z")

</div>

Thanks. That’s weird. My GKS QtTerm result for ` @layout [a b; c{0.875h}]`:

 ![gr2](https://global.discourse-cdn.com/julialang/original/3X/a/1/a172ba8dac327bead2fe80c8809b5c3954bd984a.png)  
However, the saved figure is better:  
 ![gr3](https://global.discourse-cdn.com/julialang/original/3X/8/9/891174f8f7a42951b0aee9f38dfd8d1bf4fe0283.png)

---

<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:** [February 4, 2022, 9:24pm UTC](https://discourse.julialang.org/t/is-the-plots-jl-layout-broken/75819/7 "2022-02-04T21:24:24Z")

</div>

Here it is tightly displayed everywhere:

```julia
Plots v1.25.5
Measures v0.3.1

```
