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 <Jianfu.Pan@...245...> 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 line spacing. Does anyone know if this is
> possible? Thanks for your time.
Currently not, the pad between the newline is hard coded, but we could
expose it as a parameter w/o too much work.
JDH
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
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 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 <Jianfu.Pan@...245...> 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 line spacing. Does anyone know if this is
possible? Thanks for your time.
Currently not, the pad between the newline is hard coded, but we could
expose it as a parameter w/o too much work.
JDH
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
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 Numeric and/or numarray arrays and packages, or the matplotlib.numerix package, but it does mean you must have numpy installed to build matplotlib from svn or any future release.
I think you will find the default line spacing is now better than it was, regardless of font size. Default line spacing is 1.2 * H, where H is the maximum vertical extent of normal text (bottom of descender to top of ascender. This is about typical for normal typesetting, as far as I can tell. The multiplier is accessible as a new kwarg (linespacing) in commands that make Text objects. For example, if you want wider spacing in your title you could use the pylab command
title('First Line\nSecond Line', linespacing=1.5)
Eric
···
--Jim
On Jul 10, 2007, at 10:48 AM, Jianfu Pan wrote:
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