Re: [Matplotlib-users] Text line spacing control

2007-07-12 Thread Eric Firing
James Boyle wrote: > 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. You've got it now in svn. Be aware that mpl now requires numpy. That doesn't mean you can't use

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] 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: > 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, 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 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 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 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

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