Aug-06-2019, 09:18 AM
All
I'm still trying to dinf the good synthax in order to underline the title; I tried Latex methode with $\underline{My Title}$ but it's not recognized
How to proceed?
Thanks
Paul
I'm still trying to dinf the good synthax in order to underline the title; I tried Latex methode with $\underline{My Title}$ but it's not recognized
import matplotlib.pyplot as plt import numpy as np n = 20; A = np.random.random((n,2)); A = A[A[:,0].argsort()]; fig, ax = plt.subplots(figsize=(16, 9)); ax.plot(A[:,0], A[:,1], marker='o', color = 'green', linewidth=1.5, markersize=8., linestyle ='-'); ax.set_title(r"My title" + "\n",fontsize=26, fontweight='bold'); # r for Latex ax.minorticks_on(); ax.grid(which='major', linestyle='-', linewidth='1.', color='black'); ax.grid(which='minor', linestyle=':', linewidth='0.5', color='blue') ax.set_xlabel(r"$X$ [-]", fontsize=20); ax.set_ylabel(r"$Y$", fontsize=20); #plt.show();(Some other methods from internet were tested with no sucess)
How to proceed?
Thanks
Paul