lisa.notebook.plot_signal#

lisa.notebook.plot_signal(data, name=None, interpolation=None, add_markers=True, vdim=None, window=None)[source]#

Plot a signal using holoviews library.

Parameters:
  • data (pandas.Series or pandas.DataFrame or polars.LazyFrame or polars.DataFrame) – Series of values to plot.

  • name (str or None) – Name of the signal. Defaults to the data name.

  • interpolation (str or None) – Interpolate type for the signal. Defaults to steps-post which is the correct value for signals encoded as a series of updates.

  • add_markers (bool) – Add markers to the plot.

  • vdim (holoviews.core.dimension.Dimension) – Value axis dimension.

  • window (tuple(float or None, float or None) or None) – Use lisa.datautils.df_refit_index() on the data with the given window to ensure nice plot boundaries.