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 >> 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.
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. Certainly for line spacing, and probably in other places related to text positioning, I would think pads usually should be in fractions of the font size, not fixed numbers of pixels. Comments? Unless someone else would like to do it, I can take care of this at least as far as putting an rcParam entry for inter-line spacing as a fraction of font height, and a corresponding kwarg in Text and TextWithDash. Eric ------------------------------------------------------------------------- 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