pybic.PlotTimeline

pybic.PlotTimeline(x, y, t=None, fig=None, ax=None, lw=2, cmap='turbo', cbar=None, fsize=14)[source]

Plot line with color.

Sourced from https://matplotlib.org/3.1.1/gallery/lines_bars_and_markers/multicolored_line.html.

Parameters:
  • x (ndarray) – X data.

  • y (ndarray) – Y data.

  • t (ndarray) – “time” data.

  • fig (Figure) – Input figure.

  • ax (Axes) – Input axes.

  • lw (float) – Linewidth.

  • cmap (str) – Colormap.

  • cbar (bool) – Include colorbar.

  • fsize (float) – Font size.