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
solution.

Regards,

-JJ

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.

Thanks.

----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 à: matplotlib-users@lists.sourceforge.net

Take a look at

http://matplotlib.sourceforge.net/users/text_props.html

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

-JJ

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

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

http://pyx.sourceforge.net/examples/text/valign.html ?

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options