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 ------------------------------------------------------------------------- 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 https://lists.sourceforge.net/lists/listinfo/matplotlib-users