pygsti.report.make_linear_cmap¶
-
pygsti.report.
make_linear_cmap
(start_color, final_color, name=None)¶ Make a color map that simply linearly interpolates between a start color and final color in RGB(A) space.
Parameters: - start_color (3- (or 4-) tuple) – The (r, g, b[, a]) values for the start color.
- final_color (3- (or 4-) tuple) – The (r, g, b[, a]) values for the final color.
- name (string) – A name for the colormap. If not provided, a name will be constructed from the colors at the two endpoints.
Returns: Return type: A cmap that interpolates between the endpoints in RGB(A) space.