parameters: (n)
return_statement: return color_list
docstring: Generate n colors with equally spaced hues.
  
      Parameters
      ----------
      n : int
          The number of colors required.
  
      Returns
      -------
      color_list : list, length n
          List of n tuples of form (R, G, B) being the components of each color.
docstring_summary: Generate n colors with equally spaced hues.
docstring_tokens: Generate n colors with equally spaced hues .
function: def _color_brew(n):
      """Generate n colors with equally spaced hues.
  
      Parameters
      ----------
      n : int
          The number of colors required.
  
      Returns
      -------
      color_list : list, length n
          List of n tuples of form (R, G, B) being the components of each color.
      """
      color_list = []
  
      # Initialize saturation & value; calculate chroma & value shift
      s, v = 0.75, 0.9
      c = s * v
      m = v - c
  
      for h in np.arange(25, 385, 360. / n).astype(int):
          # Calculate some intermediate values
          h_bar = h / 60.
          x = c * (1 - abs((h_bar % 2) - 1))
          # Initialize RGB with same hue & chroma as our color
          rgb = [(c, x, 0),
                 (x, c, 0),
                 (0, c, x),
                 (0, x, c),
                 (x, 0, c),
                 (c, 0, x),
                 (c, x, 0)]
          r, g, b = rgb[int(h_bar)]
          # Shift the initial RGB values to match value and store
          rgb = [(int(255 * (r + m))),
                 (int(255 * (g + m))),
                 (int(255 * (b + m)))]
          color_list.append(rgb)
  
      return color_list
function_tokens: def _color_brew ( n ) : color_list = [ ] # Initialize saturation & value; calculate chroma & value shift s , v = 0.75 , 0.9 c = s * v m = v - c for h in np . arange ( 25 , 385 , 360. / n ) . astype ( int ) : # Calculate some intermediate values h_bar = h / 60. x = c * ( 1 - abs ( ( h_bar % 2 ) - 1 ) ) # Initialize RGB with same hue & chroma as our color rgb = [ ( c , x , 0 ) , ( x , c , 0 ) , ( 0 , c , x ) , ( 0 , x , c ) , ( x , 0 , c ) , ( c , 0 , x ) , ( c , x , 0 ) ] r , g , b = rgb [ int ( h_bar ) ] # Shift the initial RGB values to match value and store rgb = [ ( int ( 255 * ( r + m ) ) ) , ( int ( 255 * ( g + m ) ) ) , ( int ( 255 * ( b + m ) ) ) ] color_list . append ( rgb ) return color_list