mathtext in legend ?

Hi all,

Can I use formulas within the legend command, e.g.

legend( ('$\sin(x)$', '$\cos(x)$'), loc='upper left')

Nils