Remove box around legend?

I see lots of examples on how to play around with the legend, adding
columns, shadow, etc... Is there a way to remove the box so that
all you see are the items of things being plotted with no box around
them?

   Also, keeping the box but removing the black outline around the box
is good enough since it would look like there is no box.

                                                Joseph Smidt

···

--
------------------------------------------------------------------------
Joseph Smidt <josephsmidt@...287...>

Physics and Astronomy
4129 Frederick Reines Hall
Irvine, CA 92697-4575
Office: 949-824-3269

Hi,

legend.draw_frame(False) should do the trick. Check out
http://matplotlib.sourceforge.net/api/artist_api.html?highlight=draw_frame#matplotlib.legend.Legend.draw_frame

Cheers,
Chaitanya

···

On Thu, Jul 9, 2009 at 11:18 PM, Joseph Smidt<josephsmidt@...287...> wrote:

I see lots of examples on how to play around with the legend, adding
columns, shadow, etc... Is there a way to remove the box so that
all you see are the items of things being plotted with no box around
them?

Also, keeping the box but removing the black outline around the box
is good enough since it would look like there is no box.

                                           Joseph Smidt

--
------------------------------------------------------------------------
Joseph Smidt <josephsmidt@...287...>

Physics and Astronomy
4129 Frederick Reines Hall
Irvine, CA 92697-4575
Office: 949-824-3269

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Thank you! That did it. I thought I read the webpage you sent 10
times, but didn't even notice. Thanks.

···

On Thu, Jul 9, 2009 at 3:38 PM, Chaitanya Krishna<icymist@...287...> wrote:

Hi,

legend.draw_frame(False) should do the trick. Check out
http://matplotlib.sourceforge.net/api/artist_api.html?highlight=draw_frame#matplotlib.legend.Legend.draw_frame

Cheers,
Chaitanya

On Thu, Jul 9, 2009 at 11:18 PM, Joseph Smidt<josephsmidt@...287...> wrote:

I see lots of examples on how to play around with the legend, adding
columns, shadow, etc... Is there a way to remove the box so that
all you see are the items of things being plotted with no box around
them?

Also, keeping the box but removing the black outline around the box
is good enough since it would look like there is no box.

                                           Joseph Smidt

--
------------------------------------------------------------------------
Joseph Smidt <josephsmidt@...287...>

Physics and Astronomy
4129 Frederick Reines Hall
Irvine, CA 92697-4575
Office: 949-824-3269

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
------------------------------------------------------------------------
Joseph Smidt <josephsmidt@...287...>

Physics and Astronomy
4129 Frederick Reines Hall
Irvine, CA 92697-4575
Office: 949-824-3269

I often set the alpha on the frame so it is translucent, which in some
cases is preferable to turning the frame off entirely::

  leg = ax.legend(fancybox=True)
  leg.get_frame().set_alpha(0.5)

JDH

···

On Thu, Jul 9, 2009 at 5:56 PM, Joseph Smidt<josephsmidt@...287...> wrote:

Thank you! That did it. I thought I read the webpage you sent 10
times, but didn't even notice. Thanks.

On Thu, Jul 9, 2009 at 3:38 PM, Chaitanya Krishna<icymist@...287...> wrote:

Hi,

legend.draw_frame(False) should do the trick. Check out
http://matplotlib.sourceforge.net/api/artist_api.html?highlight=draw_frame#matplotlib.legend.Legend.draw_frame