Add list of colored strips
addColorStrips(n_strips, color_map, orient, pos_function, size, thickness = 20)Number of strips to be added
A list of colors corresponding to the number of strips
Orientation of the legend. Can be "bottom" (default, horizontal with labels below), "top" (horizontal with labels above), "left" (vertical with labels on the left)
and "right" (vertical with labels on the right).
A function to convert from index number to pixels
The length of the list in pixels
The height or width of the list in pixels
A list of SVG rect shapes.