def write_to_canvas(self, canvas, name):
points = self.canvas_points()<EOL>args = []<EOL>for point in points:<EOL><INDENT>args += list(point)<EOL><DEDENT>canvas.add_polyline(<EOL>*args, line_color=self.color(), line_style=self.linestyle(),<EOL>line_width=self.linewidth(), name=name<EOL>)<EOL>
Writes the series to an OmniCanvas canvas.

        :param Canvas canvas: The canvas to write to.
        :param str name: The name to give the line graphic on the canvas.