def contour(self, level):
if not isinstance(level, numbers.Number):<EOL><INDENT>raise TypeError(<EOL>("<STR_LIT>"<EOL>"<STR_LIT>").format(type(level)))<EOL><DEDENT>vertices = self._contour_generator.create_contour(level)<EOL>return self.formatter(level, vertices)<EOL>
Get contour lines at the given level.

        Parameters
        ----------
        level : numbers.Number
            The data level to calculate the contour lines for.

        Returns
        -------
        :
            The result of the :attr:`formatter` called on the contour at the
            given `level`.