parameters: (self, xlim)
docstring: Set x-axis limits.
  
              Accepts a two-element list to set the x-axis limits.
  
              Args:
                  xlim (list): lower and upper bounds
  
              Raises:
                  ValueError: xlim must contain two elements
                  ValueError: Min must be less than max
docstring_summary: Set x-axis limits.
docstring_tokens: Set x - axis limits .
function: def set_xlim(self, xlim):
          """ Set x-axis limits.
  
              Accepts a two-element list to set the x-axis limits.
  
              Args:
                  xlim (list): lower and upper bounds
  
              Raises:
                  ValueError: xlim must contain two elements
                  ValueError: Min must be less than max
          """
          if len(xlim) != 2:
              raise ValueError("xlim must contain two elements")
  
          if xlim[1] < xlim[0]:
              raise ValueError("Min must be less than Max")
  
          self.options["min_x"] = xlim[0]
          self.options["max_x"] = xlim[1]
function_tokens: def set_xlim ( self , xlim ) : if len ( xlim ) != 2 : raise ValueError ( "xlim must contain two elements" ) if xlim [ 1 ] < xlim [ 0 ] : raise ValueError ( "Min must be less than Max" ) self . options [ "min_x" ] = xlim [ 0 ] self . options [ "max_x" ] = xlim [ 1 ]