matplotlib/matplotlib — pull request #1081 by pwuertz (2012-08-13 12:52:12+00:00)
Title: Propagate mpl.text.Text instances to the backends and fix documentation

This patch addresses the issue #353. Some backends could really benefit from the text alignment information that is present in mpl.text.Text instances. For instance, editing a pdf or svg would be much easier if the text elements were anchored as intended.

In contrast to the documentation of [RendererBase.draw_text](http://matplotlib.sourceforge.net/api/backend_bases_api.html#matplotlib.backend_bases.RendererBase.draw_text), a backend only receives a simple string instead of a Text instance. The patch simply adds the optional "mtext" kwarg that is used to propagate Text instances to the backends without changing the way text rendering is handled in any way. I also ran the tests from tests.py and everything seems to be fine.