Re: [Matplotlib-users] Toggling plot legends

2009-01-06 Thread John Hunter
On Tue, Jan 6, 2009 at 7:15 AM, Mauro Cavalcanti 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(someth

[Matplotlib-users] Toggling plot legends

2009-01-06 Thread Mauro Cavalcanti
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? Thanks in advance! Best regards, -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mauro...@g