Re: [Matplotlib-users] Scale legend box border, dashed and dotted lines when the figure size is changed

2010-07-13 Thread Eric Firing
On 07/12/2010 01:11 PM, John Hunter wrote: On Mon, Jul 12, 2010 at 5:11 PM, Jeffrey Blackburneje...@mit.edu wrote: Actually, I have been able to do it like this: mpl.rcParams['patch.linewidth'] = 0.2 Hope that helps, and sorry I didn't reply sooner. Of course this will affect any other

Re: [Matplotlib-users] Scale legend box border, dashed and dotted lines when the figure size is changed

2010-07-12 Thread Janne Blomqvist
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

Re: [Matplotlib-users] Scale legend box border, dashed and dotted lines when the figure size is changed

2010-07-12 Thread Jeffrey Blackburne
On Jul 12, 2010, at 5:45 PM, Janne Blomqvist wrote: 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. Hi Janne, Actually, I have been able to do it

Re: [Matplotlib-users] Scale legend box border, dashed and dotted lines when the figure size is changed

2010-07-12 Thread John Hunter
On Mon, Jul 12, 2010 at 5:11 PM, Jeffrey Blackburne je...@mit.edu wrote: Actually, I have been able to do it like this: mpl.rcParams['patch.linewidth'] = 0.2 Hope that helps, and sorry I didn't reply sooner. Of course this will affect any other patches in your figure (eg Rectangles from

Re: [Matplotlib-users] Scale legend box border, dashed and dotted lines when the figure size is changed

2010-07-10 Thread Jouni K . Seppänen
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