From: Steve Schmerler <elcorto@gm...>  20070706 19:36:43

Edin Salkovic wrote: > Hi kaushik, > > On 7/6/07, kaushik.ghose <kaushik.ghose@...> wrote: >> Hi, >> >> When I do >> >> m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') > > Shouldn't that be: > r'$\sum_{n=1}^{100}$' # i.e. a "raw" string. > > or: > > '$\\sum_{n=1}^{100}$' # Escaped backslash > >From my experience, with usetex True and without r'', the TeX string is parsed correctly even for stuff like text(0,0,'$\sum_{n=1}^{100}$ with $\Omega$'), i.e. mathmode and textmode combined. Here, indeed, with usetex False, using r'' produces the \sum sign in the .svg but "n=1" and "100" are not alinged correctly (they both appear above \sum). With usetex True there is the NotImplementedError (mpl 0.90.0dev3131).  cheers, steve I love deadlines. I like the whooshing sound they make as they fly by.  Douglas Adams 