def add_lines(self, CS):
if not isinstance(CS, contour.ContourSet) or CS.filled:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>tcolors = [c[<NUM_LIT:0>] for c in CS.tcolors]<EOL>tlinewidths = [t[<NUM_LIT:0>] for t in CS.tlinewidths]<EOL>ColorbarBase.add_lines(self, CS.levels, tcolors, tlinewidths)<EOL>
Add the lines from a non-filled
:class:`~matplotlib.contour.ContourSet` to the colorbar.