On Tue, Jan 6, 2009 at 7:15 AM, Mauro Cavalcanti <mauro...@gmail.com> wrote:
> Dear ALL,
>
> I am under the impression that this is a very common question, but is
> there any way to toggle on/off a legend from a MPL plot?

Any artist can be "toggled" on and off by setting the visible property

  leg = ax.legend(something)
  leg.set_visible(True|False)

JDH

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

Reply via email to