TeX support

Did you remember to quote the string

    from pylab import plot, title, show, rc
    rc('text', usetex=True)
    title(r'Acc\'ent')
    show()

I don't believe unicode works with usetex at this time -- file a
support request on the sf site with an example script that you believe
should work (eg the string works in TeX) but does does not work in
mpl.

JDH

···

On Tuesday 07 June 2005 18:22, John Hunter wrote:

    >> TeX support : Now you can (optionally) use TeX to handle *all*
    >> of the ? text elements in your figure with the rc param
    >> text.usetex (*Agg and ? PS only).

    > Now, that's *just* great ! A big thank you for adding
    > this feature !

    > I just seem to have problems whith accentuated
    > characters: neither "?", nor "\'e" work for me... any
    > ideas ?

Did you remember to quote the string

    from pylab import plot, title, show, rc
    rc('text', usetex=True)
    title(r'Acc\'ent')
    show()

I'm dumb... I took care of writing r"..." to test maths, but forgot the
leading 'r' to test the accentuated characters... sorry, everything works
like a charm !

By the way, when text.usetex is set to True, could one imagine to be able to
use string arguments to the mpl text routines whithout that leading 'r' ?

I don't believe unicode works with usetex at this time -- file a
support request on the sf site with an example script that you believe
should work (eg the string works in TeX) but does does not work in
mpl.

Well, I think I won't need them, accentuated characters are enough for me,
thanks !

nicolas

···

On Tuesday 07 June 2005 18:57, John Hunter wrote: