# Plot size from subplots sizes

**URL:** https://discourse.julialang.org/t/plot-size-from-subplots-sizes/76542
**Category:** General Usage
**Tags:** plotting, plots
**Created:** [February 16, 2022, 8:38am UTC](https://discourse.julialang.org/t/plot-size-from-subplots-sizes/76542 "2022-02-16T08:38:13Z")
**Posts on this page:** 1
**Showing post:** 4

<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 16, 2022, 2:54pm UTC](https://discourse.julialang.org/t/plot-size-from-subplots-sizes/76542/4 "2022-02-16T14:54:30Z")

</div>

One way to fix this type of issue is `using Measures` and `plot()` keyword `margin`, which can be tuned with `left`, `top`, … prefixes, for each individual plot or for all.

```julia
using Measures
p = testplot()
plot(p,p, layout=grid(1,2, widths=(4/8,4/8)), size=(800,300), margin=5mm)

```

 ![Plots_subplots_measures](https://global.discourse-cdn.com/julialang/original/3X/8/f/8f7fde9abe9fea660a29c2478cd6792be9640fc5.png)

---

_[View the full topic](https://discourse.julialang.org/t/plot-size-from-subplots-sizes/76542)._
