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

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

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

2 Likes