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. thanks!

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, that

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

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

[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

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 bigger

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 file),

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 [EMAIL

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 I wish I

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.

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 spacing, so it is

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 wants to try

[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

[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 +=

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 tried to follow the

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 y_1 z_(MN) x_M y_2 z_(MN) .

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',