Re: [Matplotlib-users] multiline mlath text

2008-01-18 Thread Mark Bakker
17 Jan 2008 09:29:43 -0500 > From: Darren Dale <[EMAIL PROTECTED]> > Subject: Re: [Matplotlib-users] multiline mlath text > To: matplotlib-users@lists.sourceforge.net > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > I

Re: [Matplotlib-users] multiline mlath text

2008-01-17 Thread Darren Dale
I dont think newlines are supported this way in tex. Here's an example: \documentclass[]{article} \begin{document} $a=e^{i\pi}\\x=y$ $$a=e^{i\pi}\\x=y$$ \begin{eqnarray} a & = & \frac{e^{i\pi}}{e^{-i\pi}} \\ & = & e^{i2\pi} \end{eqnarray} \end{document} The first treats the newline as if

Re: [Matplotlib-users] multiline mlath text

2008-01-17 Thread Michael Droettboom
There is no way to insert newlines in the mathtext part of the string (by that I mean between the '$'). However, you can put newline characters outside of '$'. It gets a bit hairy because of Python's string escaping rules, but you could do something like: "$\\alpha=%G$\n$\\beta=%G$" Note

[Matplotlib-users] multiline mlath text

2008-01-16 Thread BL
Hi, I want to display the values of some variable (namely, alpha, beta, gamma, delta) on a plot, and making a legend like "$ \alpha=%G, \ \bet=%G, \ \gamma=%G, \ \delta=%G $" % values is not very readable. Is there away to make multiline mathtext ? thanks BL ---