On 7/16/07, Edin Salkovic <[EMAIL PROTECTED]> wrote:

> You use it like this (notice no backslashes):
> >>> from matplotlib._mathtext_data import tex2uni
> >>> unichr(tex2uni['int'])
> u'\u222b'
> >>> unichr(tex2uni['sum'])
> u'\u2211'

That's a rather good solution, as it avoids duplication, and is
friendly to dumb terminals and developers <wink>.  You might simply
define some constants at the ticker module level for efficient reuse,
eg

usumchar = unichr(tex2uni['sum'])

etc...

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to