adjusting the height of rectangle legend handles

I know that there is a keyword argument for adjusting the width of legend handles but how would I reduce the height of rectangle label handles?

-Chuck

The height of the box will scale with the font size. If you want to
change the height independent of the font size, you need to manually
adjust the properties of the individual legend handles.

l = legend()
patches = l.get_patches() # list of legend handles whose type is
matplotlib.Patch.
for p in patches:
    p.set_height(20) # height in point. you can also adjust y
positionwith set_y method. Note that y=0 is the baseline.

Regards,

-JJ

···

On Tue, Jul 21, 2009 at 3:30 PM, Chuck Pepe-Ranney<cpepera@...2681...> wrote:

I know that there is a keyword argument for adjusting the width of legend
handles but how would I reduce the height of rectangle label handles?

-Chuck

------------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users