|
From: Jouni K. S. <jk...@ik...> - 2010-07-10 15:43:00
|
Janne Blomqvist <blo...@gm...> writes: > The problem I'm having is that as the figure is then pretty small, I > can scale font sizes, axis sizes, line widths etc., but what I've been > unable to figure out is how to scale dashed or dotted lines, as well > as the thickness of the legend border box. It seems that there are no rc settings for these, but you can adjust them as follows: > a.plot(x, y, '--', label='foo bar') Change this to a.plot(x, y, '--', label='foo bar', dashes=(2,2)) The value of dashes is the number of points of ink followed by the number of points of whitespace. It defaults to (6,6) for the '--' linestyle (found in the dashd dictionary of backend_bases.py). > a.legend() Change this to lg = a.legend() fr = lg.get_frame() fr.set_lw(0.2) -- Jouni K. Seppänen http://www.iki.fi/jks |