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