Re: [Matplotlib-users] latex labels on plots

2006-06-16 Thread John Hunter
> "John" == John Pye <[EMAIL PROTECTED]> writes: John> I wonder if someone with write access to the scipy wiki John> could maybe update the above page with some comments about John> the 'mathtext' support in Matplotlib? It might also be worth John> noting that the mathtext func

Re: [Matplotlib-users] latex labels on plots

2006-06-16 Thread John Pye
What I meant to say was that \frac doesn't work for me with the mathtext renderer, i.e. with usetex=False. Do you find that it *does*? Cheers JP Wolfgang wrote: >Hi, > >frac works for me: > >yaxislabel=r'\sffamily water content $\left( >\frac{\textsf{kg}}{\textsf{m}^{\textsf{\small 2}}}\right)

Re: [Matplotlib-users] latex labels on plots

2006-06-16 Thread Wolfgang
Hi, frac works for me: yaxislabel=r'\sffamily water content $\left( \frac{\textsf{kg}}{\textsf{m}^{\textsf{\small 2}}}\right) $' ylabel(yaxislabel) And you can also set rc('text', usetex=False) in your file to enable or disable tex in my case I did the following: tex_out=True # False if tex

[Matplotlib-users] latex labels on plots

2006-06-15 Thread John Pye
Hi all I came across this page: http://www.scipy.org/Cookbook/Matplotlib/UsingTex which mentions using LaTeX to generate labels on plots in Matplotlib. What I only discovered recently is that you don't need this 'usetext=1' thing in order to create captions on plots that include subscripts, etc.