(self, values)
Set the legend labels.

            Args:
                values (list): list of labels.

            Raises:
                ValueError: legend must be a list of labels.
Set the legend labels.
Set the legend labels .
def legend(self, values):
        """Set the legend labels.

            Args:
                values (list): list of labels.

            Raises:
                ValueError: legend must be a list of labels.
        """
        if not isinstance(values, list):
            raise TypeError("legend must be a list of labels")

        self.options["legend"] = values
def legend ( self , values ) : if not isinstance ( values , list ) : raise TypeError ( "legend must be a list of labels" ) self . options [ "legend" ] = values