[Matplotlib-users] Title overwriting axis label

Neal Becker ndbecker2 at gmail.com
Fri Nov 13 08:53:05 EST 2020


The plot is produced by the following code:

    import matplotlib.pyplot as plt
    ax = plt.gca()
    ax.ticklabel_format(style='sci', scilimits=(-3,3), axis='y')
    ax.ticklabel_format(style='sci', scilimits=(-3,3), axis='x')
    plt.plot (np.arange (start=0, stop=len(freq)*opt.segment,
step=opt.segment), freq)
    plt.xlabel ('time(symbols)')
    plt.title (r'$E_s/N_0=%s, \alpha=%s, \omega_n=%s, \Delta_f=%s$
mod=%s'%(opt.esnodB, opt.alpha, latex_float(opt.omega_n), opt.freq,
opt.mod))

    plt.ylabel ('freq(cycle/sym)')
    plt.tight_layout()

Any suggestions how to prevent this overlap of the title and the axis label?
This is mpl-3.3.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/matplotlib-users/attachments/20201113/c46bf7fb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_btr_iir.py,sym=1e-5,alpha=0.05,esno=0,mod=qpsk,loop=2nd,omega=3.5e-6,df=9e-4.pdf
Type: application/pdf
Size: 366604 bytes
Desc: not available
URL: <https://mail.python.org/pipermail/matplotlib-users/attachments/20201113/c46bf7fb/attachment-0001.pdf>


More information about the Matplotlib-users mailing list