parameters: (self, values)
docstring: Set the legend labels.
  
              Args:
                  values (list): list of labels.
  
              Raises:
                  ValueError: legend must be a list of labels.
docstring_summary: Set the legend labels.
docstring_tokens: Set the legend labels .
function: 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
function_tokens: def legend ( self , values ) : if not isinstance ( values , list ) : raise TypeError ( "legend must be a list of labels" ) self . options [ "legend" ] = values