cascade.plot.plot_colored_curves

cascade.plot.plot_colored_curves(x, y, hue, data, group=None, cmap=None, vmin=None, vmax=None, ax=None)[source]

Plot colored curves where each segment is separately colored

Parameters:
  • x (str) – X-axis variable

  • y (str) – Y-axis variable

  • hue (str) – Color variable

  • data (DataFrame) – Data frame

  • group (str | None) – Grouping variable for plotting multiple curves

  • cmap (str | None) – Color map

  • vmin (float | None) – Minimum value for color map

  • vmax (float | None) – Maximum value for color map

  • ax (Axes | None) – Existing axes object

Return type:

Axes

Returns:

Axes object