Annotate axis with text in matplotlib

Viewed 12074

I want to annotate the axis of a plot with text like the example chart. To be specific, I would like to annotate regions of the axes with different captions (XYZ, ABC, MNO, etc. shown in red).

I generated the chart using this example (plotting barchart): http://matplotlib.org/examples/api/barchart_demo.html

Could anyone please help me draw such line as well as add text along axes? Any pointer to an example is also appreciated. I am not sure how else to articulate what I want to do here other than describing with a picture.

Example figure showing the text annotation along X and Y axes (shown using XYZ, MNO, etc.) in red

1 Answers
Related