legend problem

Hi all!

I have a small problem with the legend() stuff...
when plotting several lines
like in:
....
name=0
for curve in data:
    plot(curve[0],curve[1],label=str(name))
    name+=1
legend()
show()

the first two curves appear with a label but without the line represented in the legend box.
Moreover the label used for the first two lines is always line0 and line1, whatever the label I actually create. I was able to fix this by creating a label list and unvoking legend(label_list) but this did not work for the lines...
any clue??
PS I am running 0.87.3 (problems installing 0.87.5 see next post)

Thanks in advance JF