def __init__(self, line):
if not hasattr(line, '<STR_LIT>'):<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>if line.get_picker() is None:<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>self.axes = line.axes<EOL>self.line = line<EOL>self.canvas = self.axes.figure.canvas<EOL>self.cid = self.canvas.mpl_connect('<STR_LIT>', self.onpick)<EOL>self.ind = set()<EOL>
Initialize the class with a :class:`matplotlib.lines.Line2D`
instance.  The line should already be added to some
:class:`matplotlib.axes.Axes` instance and should have the
picker property set.