# What can we do if the titile of the subplot overlap the xlabels

**URL:** <https://discourse.julialang.org/t/what-can-we-do-if-the-titile-of-the-subplot-overlap-the-xlabels/28944>\
**Category:** Visualization\
**Created:** [September 19, 2019, 12:52pm UTC](https://discourse.julialang.org/t/what-can-we-do-if-the-titile-of-the-subplot-overlap-the-xlabels/28944 "2019-09-19T12:52:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lyupinpin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lyupinpin/32/9295_2.png) [@Lyupinpin](https://discourse.julialang.org/u/Lyupinpin)\
**Post date:** [September 19, 2019, 12:52pm UTC](https://discourse.julialang.org/t/what-can-we-do-if-the-titile-of-the-subplot-overlap-the-xlabels/28944/1 "2019-09-19T12:52:37Z")

</div>

![error](https://global.discourse-cdn.com/julialang/original/3X/5/2/5237c71981ef23978ab3065640e64fef4a655a50.png)

```julia
using PyPlot
clf()
fig = figure("error",figsize=(10,50))
for i=1:3
    subplot(3,1,i)
    a=rand(100)
    plot(a,a)
    ylabel(" Y",fontsize=18)
    xlabel("X",fontsize=18)
    title("L",fontsize=18)
    ax = gca()
    setp(ax.get_xticklabels(),fontsize=18)
    setp(ax.get_yticklabels(),fontsize=18)
end

```

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 19, 2019, 1:03pm UTC](https://discourse.julialang.org/t/what-can-we-do-if-the-titile-of-the-subplot-overlap-the-xlabels/28944/2 "2019-09-19T13:03:57Z")

</div>

If you google “increase spacing between subplots matplotlib” you will find many explanations.
