import matplotlib.pyplot as plt fig, ax = plt.subplots() textstr = "Test" ax.text(0.05, 0.95, textstr, transform=ax.transAxes, fontsize=14, verticalalignment='top')