invisilbe line

Sæl !

Is there a way to "turn-off" lines without removing the data ?
My goal is to hide some lines in a plot wihtout losing the data so I can show it again later.
I can do
# Hide the line
x=line.get_xdata()
y=line.get_ydata()
line.set_data([],[])

# Reset the line
line.set_data(x,y)

But I would prefer I more elegant way like
line.hide()
line.show()

Would it be possible to get something like that ?

Thanks

Jean-Baptiste

···

--
-----------------------------
Jean-Baptiste.Cazier@...15...

Department of Statistics
deCODE genetics Sturlugata,8
570 2993 101 Reykjavík