On Sat, Jul 10, 2010 at 18:42, Jouni K. Seppänen <j...@iki.fi> wrote: > Janne Blomqvist <blomqvist.ja...@gmail.com> 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users