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-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 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] Font problem saving [e]ps

2007-07-10 Thread Giorgio F. Gilestro
Well I did fix it myself in the meanwhile. I must say I don't like working with the CVS because I am planning to release the application I am writing and I need to guarantee a minimal version of the packages that the end user should eventually install without caring too much about the CVS. Thank y

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

[Matplotlib-users] Text line spacing control

2007-07-10 Thread Jianfu Pan
Hi, I use Text() call of Figure() object for writing text. Because my text is long, I use line breaker (\n) to write multiple lines with a single call. This works fine except the line spacing is really tight and I wish I could set a bigger line spacing. Does anyone know if this is possible?

Re: [Matplotlib-users] Text line spacing control

2007-07-10 Thread John Hunter
On 7/10/07, Jianfu Pan <[EMAIL PROTECTED]> wrote: > Hi, > > I use Text() call of Figure() object for writing text. Because my text is > long, I use line breaker (\n) to write multiple lines with a single > call. This works fine except the line spacing is really tight and I wish I > could set a bi

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] Text line spacing control

2007-07-10 Thread Jianfu Pan
John, Thanks for your prompt response. I think the option can be useful. In my case, the gap between the lines are really tight with "_" in the first line right on the top of characters in the second line. Regards, Jianfu At 12:31 PM 7/10/2007, John Hunter wrote: >On 7/10/07, Jianfu Pan <[EM

Re: [Matplotlib-users] Text line spacing control

2007-07-10 Thread James Boyle
As a coincidence, just today I was trying to figure out how to increase the spacing between the lines in the title of my plot. I too, would like some means to control this. --Jim On Jul 10, 2007, at 10:48 AM, Jianfu Pan wrote: > John, > > Thanks for your prompt response. I think the option ca

Re: [Matplotlib-users] Text line spacing control

2007-07-10 Thread Eric Firing
John Hunter wrote: > On 7/10/07, Jianfu Pan <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I use Text() call of Figure() object for writing text. Because my text is >> long, I use line breaker (\n) to write multiple lines with a single >> call. This works fine except the line spacing is really tight and

Re: [Matplotlib-users] Text line spacing control

2007-07-10 Thread John Hunter
On 7/10/07, Eric Firing <[EMAIL PROTECTED]> wrote: > John Hunter wrote: > It looks to me like it is all in the text._get_layout() method, where a > 2-pixel pad is specified in one place, and an additional 3-pixel pad in > another; both seem to be used for vertical spacing, so it is 5 pixels. > > C

Re: [Matplotlib-users] Text line spacing control

2007-07-10 Thread Eric Firing
John Hunter wrote: > On 7/10/07, Eric Firing <[EMAIL PROTECTED]> wrote: >> John Hunter wrote: > >> It looks to me like it is all in the text._get_layout() method, where a >> 2-pixel pad is specified in one place, and an additional 3-pixel pad in >> another; both seem to be used for vertical spacin

Re: [Matplotlib-users] Text line spacing control

2007-07-10 Thread John Hunter
On 7/10/07, Eric Firing <[EMAIL PROTECTED]> wrote: > My argument for fraction of font size is that this is the norm for > setting text; in a word processor, or in LaTeX (preferred, of course), Well, if that's how latex does it, that's how we should do it too Thanks for the offer to add this -

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

[Matplotlib-users] plotting a contour of gridded data

2007-07-10 Thread Peter I. Hansen
Hello I have gridded data of the shape: x_1 y_1 z_1 x_1 y_2 z_2 . . . x_1 y_N z_N x_2 y_1 z_(N+1) x_2 y_2 z_(N+2) . . . x_2 y_N z_(2N) x_M y_1 z_(MN) x_M y_2 z_(MN) .. . x_M y_N z_(MN) I've tried to follow the contour_demo script by making x = arange(M num

[Matplotlib-users] FigureCanvasAgg.draw() very slow

2007-07-10 Thread Devin Halperin
I'm trying to figure out why this command is taking on average over 14 seconds to render a drawing of a fairly simple plot. If anyone has ideas, I'd really appreciate some help. fig = figure(figsize=(12.5,3.75), dpi=80,facecolor = 'y', edgecolor='b') start_date = "20050710" start_date += "T000

Re: [Matplotlib-users] plotting a contour of gridded data

2007-07-10 Thread Eric Firing
Peter I. Hansen wrote: > Hello > > I have gridded data of the shape: > > x_1 y_1 z_1 > x_1 y_2 z_2 > . . . > x_1 y_N z_N > > x_2 y_1 z_(N+1) > x_2 y_2 z_(N+2) > . . . > x_2 y_N z_(2N) > > x_M y_1 z_(MN) > x_M y_2 z_(MN) > .. . > x_M y_N z_(MN) > > I've trie

Re: [Matplotlib-users] plotting a contour of gridded data

2007-07-10 Thread Peter I. Hansen
On 7/11/07, Eric Firing <[EMAIL PROTECTED]> wrote: > Peter I. Hansen wrote: > > Hello > > > > I have gridded data of the shape: > > > > x_1 y_1 z_1 > > x_1 y_2 z_2 > > . . . > > x_1 y_N z_N > > > > x_2 y_1 z_(N+1) > > x_2 y_2 z_(N+2) > > . . . > > x_2 y_N z_(2N) > > > > x_M

Re: [Matplotlib-users] FigureCanvasAgg.draw() very slow

2007-07-10 Thread John Hunter
On 7/10/07, Devin Halperin <[EMAIL PROTECTED]> wrote: > I'm trying to figure out why this command is taking on average over 14 > seconds to render a drawing of a fairly simple plot. If anyone has ideas, > I'd really appreciate some help. > fig = figure(figsize=(12.5,3.75), dpi=80,facecolor = 'y',