code: def get_colors(n):
          
          cb_palette = ["#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00",
                        "#CC79A7","#001F3F", "#0074D9", "#7FDBFF", "#39CCCC", "#3D9970", "#2ECC40",
                         "#01FF70", "#FFDC00", "#FF851B", "#FF4136", "#F012BE", "#B10DC9",
                         "#85144B", "#AAAAAA", "#000000"]
  
          whole = int(n/22)
          extra = (n % 22)
          cols = cb_palette * whole
          if extra >= 0:
              cols.extend(cb_palette[0:extra])
          return cols
docs: get colors for freqpoly graph