From: Sebastian Busch <webmaster@th...>  20100129 20:00:18

Florian Lindner wrote: > Hello, > > I try to use LaTeX in my plot.... > > florian@...:~> cat .matplotlib/matplotlibrc > text.usetex : true > > My plotting code looks like: > > Ma = arange(1.0, 5.0, 0.01) > Ts = [T(i) for i in Ma] # BTW: Is there a way to spare this line? not sure what T is. you could try T(Ma); you can do that of course also directly in the plot command > plot(Ma, Ts, label=r'/frac{T2}{T1}') should be backslash and math mode: plot(Ma, Ts, label=r'$\frac{T2}{T1}$') legend() show() > and that's all, no plot window appears, the script is finished. you did not show() ! best, sebastian. 