pygsti.report.splice_cmaps

pygsti.report.splice_cmaps(cmaps, name=None, splice_points=None)

Take a list of cmaps and create a new cmap that joins them at specified points.

Parameters:
  • cmaps (list of matplotlib cmaps) – The colormaps ordered according to how they should appear in the final colormap
  • name (string) – The name for the colormap. If no name is given, the name “spliced_cmap1name_cmap2name_...” is assigned to the colormap.
  • splice_points (ordered list of floats in (0, 1), optional) – The transition points when one colormap should end and the next should begin. Should have one less point than the number of cmaps provided. If no list is provided, the splice points will be arranged to split the interval (0, 1) up into equal seqments.
Returns:

Return type:

A cmap combining the provided cmaps