Add footnote under the x-axis using matplotlib


Question

I couldn't find the right function to add a footnote in my plot.

The footnote I want to have is something like an explanation of one item in the legend, but it is too long to put in the legend box. So, I'd like to add a ref number, e.g. [1], to the legend item, and add the footnote in the bottom of the plot, under the x-axis.

Which function should I use? Thanks!

1
11
10/27/2011 2:07:24 PM

Accepted Answer

One way would be just use plt.text(x,y,'text')

11
10/27/2011 3:43:49 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon