|
From: Janne B. <blo...@gm...> - 2010-07-12 21:45:07
|
On Sat, Jul 10, 2010 at 18:42, Jouni K. Seppänen <jk...@ik...> wrote: > 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) Thanks, this solved it. A bit annoying that it can't be done with rc params, but hey, at least it works. -- Janne Blomqvist |