# mathtext and raw strings

Hello everyone,

I intended to use the capabilities of mathtext as presented on the matplotlib example page and the tutorial page. The examples given are quite clear; yet they always assume that you pass the string that should be interpreted as raw string, e.g.

r'$\sum_{i=0}^\infty x_i$'

However, in my application the user types the labels/title/whatever text in a gtk entry field and this string, which is a unicode string, is then passed on to the matplotlib OO interface. And as it is right now, I just get the text as it is, so no fancy sum or infinity sign.

Niklas.

N. Volbers schrieb:

Hello everyone,

I intended to use the capabilities of mathtext as presented on the matplotlib example page and the tutorial page. The examples given are quite clear; yet they always assume that you pass the string that should be interpreted as raw string, e.g.

r'$\sum_{i=0}^\infty x_i$'

However, in my application the user types the labels/title/whatever text in a gtk entry field and this string, which is a unicode string, is then passed on to the matplotlib OO interface. And as it is right now, I just get the text as it is, so no fancy sum or infinity sign.