def add_data_point(self, x, y):
if not is_numeric(x):<EOL><INDENT>raise TypeError("<STR_LIT>" % str(x))<EOL><DEDENT>if not is_numeric(y):<EOL><INDENT>raise TypeError("<STR_LIT>" % str(y))<EOL><DEDENT>current_last_x = self._data[-<NUM_LIT:1>][<NUM_LIT:0>]<EOL>self._data.append((x, y))<EOL>if x < current_last_x:<EOL><INDENT>self._data = sorted(self._data, key=lambda k: k[<NUM_LIT:0>])<EOL><DEDENT>
Adds a data point to the series.

        :param x: The numerical x value to be added.
        :param y: The numerical y value to be added.