On 7/16/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: > As for Unicode literals in Python source, there is a third option, other > than u'\xd7' or '×'. Python will let you do u"\N{MULTIPLICATION SIGN}", > which means you don't have to remember what \xd7 is. For single > characters like this, I don't see much advantage (you can just name the > variable something obvious), but for longer strings with embedded > unicode characters (like docstrings), this might be something to consider.
There's also a TeX -> "unicode integer representation" dict in _mathtext_data.py. It's called tex2uni. You use it like this (notice no backslashes): >>> from matplotlib._mathtext_data import tex2uni >>> unichr(tex2uni['int']) u'\u222b' >>> unichr(tex2uni['sum']) u'\u2211' Cheers, Edin ------------------------------------------------------------------------- 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