Is there a way of telling pyplot.text() a location like you can with pyplot.legend()?
Something like the legend argument would be excellent:
plt.legend(loc="upper left")
I am trying to label subplots with different axes using letters (e.g. "A","B"). I figure there's got to be a better way than manually estimating the position.
Thanks
I'm not sure if this was available when I originally posted the question but using the loc parameter can now actually be used. Below is an example:
Just use
annotate
and specify axis coordinates. For example, "upper left" would be:You could also get fancier and specify a constant offset in points:
For more explanation see the examples here and the more detailed examples here.