# Ylabel location in stacked subplots

**URL:** <https://discourse.julialang.org/t/ylabel-location-in-stacked-subplots/83245>\
**Category:** General Usage\
**Created:** [June 23, 2022, 2:22pm UTC](https://discourse.julialang.org/t/ylabel-location-in-stacked-subplots/83245 "2022-06-23T14:22:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![usman0311](https://avatars.discourse-cdn.com/v4/letter/u/2bfe46/32.png) [@usman0311](https://discourse.julialang.org/u/usman0311)\
**Post date:** [June 23, 2022, 2:22pm UTC](https://discourse.julialang.org/t/ylabel-location-in-stacked-subplots/83245/1 "2022-06-23T14:22:44Z")

</div>

How to place ylabel (“Intensity”) at the center of the stacked subplot.  
 ![stackplot](https://global.discourse-cdn.com/julialang/original/3X/e/1/e19422af7ec0d217c14ba27629349ea7c791a45e.png)

```julia
pyplot(grid=:false, frame=:box)
x=LinRange(-π,π,1000)
p1=plot(x,10*sin.(10*x), xticks=:false,yticks=:false,ylabel="Intensity")
p2=plot(x,exp.(x),xlabel=L"\theta",yticks=:false)
plot!(p1,p2,layout=(2,1),link=:all,top_margin=-1mm)
```
