# Same z-scale on plots3d with layout

**URL:** <https://discourse.julialang.org/t/same-z-scale-on-plots3d-with-layout/55221>\
**Category:** General Usage\
**Tags:** plotting, plots\
**Created:** [February 13, 2021, 6:22pm UTC](https://discourse.julialang.org/t/same-z-scale-on-plots3d-with-layout/55221 "2021-02-13T18:22:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [February 13, 2021, 6:22pm UTC](https://discourse.julialang.org/t/same-z-scale-on-plots3d-with-layout/55221/1 "2021-02-13T18:22:14Z")

</div>

Dear all,  
I have the following code to plot several curves in a layout form.

```julia
using Plots
plotly()

pV = Vector{Any}(undef, 4);
n=[1,2,3,4];
p=1
for i=1:2, j=1:2
    z = n[p]*t
    pV[p] = scatter3d(x,y,z,lw=1,ratio=1,markersize = 0.5,xlabel="x",ylabel="y",zlabel="z",legend=false,zlims=(0,40))
    p=p+1
end
g = plot(pV...;legend=false,layout=(2,2),size=(600,600),zlims=(0,40)) 

```

and the associated output:

 ![grafico](https://global.discourse-cdn.com/julialang/original/3X/2/a/2a9d2a6854d2138c5c0c45be918f745f61721b3c.png)

I would link of a same scale in all subplots, e.g, z \in [0,40]. However, when I plot the four curves, the z-scale is different.  
How can I do this?
