From: Eric F. <ef...@ha...> - 2007-04-08 01:51:03
|
John Hunter wrote: > On 4/7/07, Eric Firing <ef...@ha...> wrote: > >> I put back get_lines() in collections and fixed a related bug in legend, >> so the test script now works in the sense that it makes a legend. It >> puts in an unlabeled line, presumably corresponding to the line >> collection making up the error bars. Maybe legend provides a way to >> avoid this. I haven't looked. > > If I'm understanding the problem you are describing correctly, it > looks like _nolegend_ needs to be set here. For artists we do not want > to be included in the legend, the label should be set to '_nolegend_' > and legend will ignore it in auto-legending. Or at least it should > and if it is not it is a bug. I have made more changes in svn to fix this bug. The collection initializers, vlines, and hlines lacked label support, so I added it. errorbar() was already trying to set the line collection label to _nolegend_, but it was not getting passed on down the line. Eric |