How to set plot annotations via plt.text() using percentages for the x-y location within the figure.
fig, ax = plt.subplots()
# plt.plot(phi_1s, T1s, '-ro', label=r'$T_1-1axis$')
plt.plot(phi_1s, T2s(x1_const), '-bo', label=r'$T_2-1axis$')
plt.plot(phi_1s, T2s(5), '-ro', label=r'$T_2-1axis$')
plt.plot(phi_1s, T2s(10), '-ko', label=r'$T_2-1axis$')
plt.xlabel(r'$\varphi_1$')
plt.ylabel(r'$T_k$')
# plt.ylim((-20, 20))
ax.legend(loc='best')
fig.tight_layout()
plt.text(0.20, 0.20, r'$x_1$=' + f' {x1_const}', horizontalalignment='center',
verticalalignment='center', transform=ax.transAxes, fontsize=11)
plt.savefig('plots/T1-Axis.pdf', bbox_inches='tight', dpi=300)
plt.close()Full code available here.