fontweight matplotlib code example Example: plt text verticalalignment plt.text(x, y, s, va = "center", ha = "center")