show legend without box ?

Hi All,

Is there any way to show the legend but without the box ? it is
blocking the figures. Although I can set the alpha to make the legend
transparent, still remove the box and make it transparent would be
better.

Thanks.

Forest.

Just as you can set the transparency of the box with

  leg.get_frame().set_alpha(0.5)

you can turn off visibility (as you can with all mpl artists)

  leg.get_frame().set_visible(False)

JDH

ยทยทยท

On Thu, Jul 1, 2010 at 1:50 PM, Forest Yang <yzine0511@...287...> wrote:

Hi All,

Is there any way to show the legend but without the box ? it is
blocking the figures. Although I can set the alpha to make the legend
transparent, still remove the box and make it transparent would be
better.