Re: [Matplotlib-users] Latex equations and SVG export

2007-07-11 Thread Edin Salkovic
On 7/10/07, Edin Salkovic <[EMAIL PROTECTED]> wrote: > On 7/10/07, John Hunter <[EMAIL PROTECTED]> wrote: > > Hey Edin, if you get a minute, could you contribute a patch against > > the faq in htdocs/faq.html.template explaining how to install the > > bakoma fonts for svg viewers? Is this sufficie

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-10 Thread Edin Salkovic
On 7/10/07, Kaushik Ghose <[EMAIL PROTECTED]> wrote: > Hi Edin, > Good point. I tried just now on Firefox and got the same error. > For an image of what I mean see this > http://python-pieces.blogspot.com/2007/07/latex-and-svg-export.html > > > I'm attaching the svg output here in case someone want

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-10 Thread Kaushik Ghose
Hi Edin, > Hmm. I'm not sure whether this is a problem with matplotlib or > inkscape. I had some weird problems with inkscape on Ubuntu Feisty > recently, like: when I open the file from Nautilus (right click->open > with Inkscape) it is completely turned around; when I open Inkscape > (blank f

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-10 Thread Edin Salkovic
On 7/10/07, Kaushik Ghose <[EMAIL PROTECTED]> wrote: > Thanks Edin! Yes, that worked! You're welcome! > There is still an issue with sub/super > scripts though. They are inverted i.e. superscripts become subscripts. > I'm attaching an example, created using > > m.text(0 ,0 ,'$\sum_{n=1}^{100} = 9

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-10 Thread John Hunter
On 7/10/07, Kaushik Ghose <[EMAIL PROTECTED]> wrote: > > > > I looked into this. You just have to install (copy) the BaKoMa fonts > > (TrueType version of the Computer Modern fonts) into your system's > > font dir, so the svg viewer can see them. These fonts are located in > > the "matplotli

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-10 Thread Kaushik Ghose
> > I looked into this. You just have to install (copy) the BaKoMa fonts > (TrueType version of the Computer Modern fonts) into your system's > font dir, so the svg viewer can see them. These fonts are located in > the "matplotlib/mpl-data/fonts/ttf" dir (the cm*.ttf files). > Thanks Edin! Yes

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-10 Thread Edin Salkovic
On 7/7/07, Edin Salkovic <[EMAIL PROTECTED]> wrote: > On 7/6/07, Kaushik Ghose <[EMAIL PROTECTED]> wrote: > > Hi Edin, (...) > > Actually the original string renders as desired. Its the svg save that > > causes the problem. > > > > I gather this is due to incomplete implementation of svg export. >

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Edin Salkovic
On 7/6/07, Kaushik Ghose <[EMAIL PROTECTED]> wrote: > Hi Edin, > > Edin Salkovic wrote: > >> > >> m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') > > > > Shouldn't that be: > > r'$\sum_{n=1}^{100}$' # i.e. a "raw" string. > > > > or: > > > > '$\\sum_{n=1}^{100}$' # Escaped b

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Kaushik Ghose
Hi Edin, Edin Salkovic wrote: >> >> m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') > > Shouldn't that be: > r'$\sum_{n=1}^{100}$' # i.e. a "raw" string. > > or: > > '$\\sum_{n=1}^{100}$' # Escaped backslash > Actually the original string renders as desired. Its the sv

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Steve Schmerler
Edin Salkovic wrote: > Hi kaushik, > > On 7/6/07, kaushik.ghose <[EMAIL PROTECTED]> wrote: >> Hi, >> >> When I do >> >> m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') > > Shouldn't that be: > r'$\sum_{n=1}^{100}$' # i.e. a "raw" string. > > or: > > '$\\sum_{n=1}^{100}$'

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Edin Salkovic
Hi kaushik, On 7/6/07, kaushik.ghose <[EMAIL PROTECTED]> wrote: > Hi, > > When I do > > m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') Shouldn't that be: r'$\sum_{n=1}^{100}$' # i.e. a "raw" string. or: '$\\sum_{n=1}^{100}$' # Escaped backslash Does this help? Cheers,

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Steve Schmerler
kaushik.ghose wrote: > m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') > > matplotlib renders it fine, but won't save it to svg correctly - the > summation symbol doesn't show up. > > Is this a configuration issue on my part, or is svg support for latex > currently incompl

[Matplotlib-users] Latex equations and SVG export

2007-07-05 Thread kaushik.ghose
Hi, When I do m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') matplotlib renders it fine, but won't save it to svg correctly - the summation symbol doesn't show up. Is this a configuration issue on my part, or is svg support for latex currently incomplete? I'm on win vis