From: Humufr <hu...@ya...> - 2005-12-08 21:43:45
|
Hello, I did probably something not good but it seems for me that the legend() function is not working properly (at least with errorbar) x = arange(0,1.0,0.01) p1 = errorbar(x,x,x,fmt='o') # or errorbar(x,x,x,fmt='o') legend() it seems to put in the legend all the points and lines. I tried to do a legend((p1),('p1')) but it's not working, you have to do: legend((p1,),('p1',)) to obtain the legend. Perhaps that must be indicate in the documentation that a you need a tuple and the method to have a legend with errorbar. Thanks, N. |