Title overwriting axis label

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Title overwriting axis label

Neal Becker
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

_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users

test_btr_iir.py,sym=1e-5,alpha=0.05,esno=0,mod=qpsk,loop=2nd,omega=3.5e-6,df=9e-4.pdf (489K) Download Attachment