Re: [Matplotlib-users] avoid duplicate legends

2014-10-22 Thread Tommy Carstensen
I was able to solve my two problems by doing label="" and numpoints=1. Thank you very much for your help. I found my solution here: http://stackoverflow.com/questions/19385639/duplicate-items-in-legend-in-matplotlib There is also another cleaner solution here: http://stackoverflow.com/questions/1

Re: [Matplotlib-users] avoid duplicate legends

2014-10-20 Thread Benjamin Root
Legends entries are blindly constructed. Each plotting call that has a legend keyword argument will produce a legend entry if you are automatically building the legend. You can pass a label value of "__nolabel__" to prevent an entry if you know you are about to do something that would duplicate the

Re: [Matplotlib-users] avoid duplicate legends

2014-10-20 Thread Hearne, Mike
For your first question: Use the legend "numpoints" keyword. I think if you set it to 1, it should solve that problem. For your second question, I'm not sure, but I'll bet if you poke around in the Legend object returned by the function, you'll find something. On Mon, Oct 20, 2014 at 8:04 AM, To

[Matplotlib-users] avoid duplicate legends

2014-10-20 Thread Tommy Carstensen
How does one avoid duplicate legends? www.tommycarstensen.com/python2_matplotlib_basemap_merc_bluemarble_hresolution.jpg Can I make the legend size smaller than the marker size? -- Comprehensive Server Monitoring with Sit