grapa.colorscale.colorize_graph

grapa.colorscale.colorize_graph(graph: Graph, colorscale: Colorscale, same_if_empty_label=False, avoid_white=False, curvesselection=None)

Colorize a Graph using a Colorscale.

Parameters:
  • graph – a Graph object

  • colorscale – a Colorscale object

  • same_if_empty_label – if True, the color is repeated if a Curve is hidden or if its label is hidden.

  • avoid_white – avoids using colors too close to white.

  • curvesselection – provide a list of curve index within the graph, to apply to colorscale on.