Vertical alignment of a text

Dimension of a text in mpl is renderer-dependent in general.
Each renderer has "get_text_width_height_descent" method which returns
width, height, and descent of the given text.
If you're only interested in latex-rendered text, you may use the
get_text_width_height_descent() method in the TexManager.

As you see, it is possible to know the dimension of the text, but
these functionalities are not exposed to the user, and a bit difficult
to use unless you're familiar with mpl. If you let us know for what
you need to use the depth of the text, we may come up with some simple



ps. Please CC the mail to the list also.


On Wed, Jan 14, 2009 at 1:28 PM, <projetmbc@...748...> wrote:

In fact I would like to know depth of a single formula. dvipng gives that
kind of information.


----Message d'origine----

Date: Wed, 14 Jan 2009 13:24:40 -0500
De: "Jae-Joon Lee"
A: projetmbc@...748...
Sujet: Re: [Matplotlib-users] Vertical alignment of a text
Copie à:

Take a look at

But I guess MPL's functionality is somewhat limited compared to PyX,
especially in multiline support.


On Wed, Jan 14, 2009 at 1:13 PM, <projetmbc@...748...> wrote:

is there a similar functionnality to the one given by PyX here : ?

This email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
Matplotlib-users mailing list