Just use annotate and specify the axis coordinates. For example, "top left" would be:
plt.annotate('Something', xy=(0.05, 0.95), xycoords='axes fraction')
You can also get fancier and indicate a constant offset at points:
plt.annotate('Something', xy=(0, 1), xytext=(12, -12), va='top' xycoords='axes fraction', textcoords='offset points')
See examples here for more details and more detailed examples here .
Joe Kington Aug 12 '11 at 20:13 2011-08-12 20:13
source share