biosiglive.gui package

Submodules

biosiglive.gui.plot module

This file contains all the plot functions to plot the data in live or offline.

class biosiglive.gui.plot.LivePlot(nb_subplots: int = 1, plot_type: PlotType | str = PlotType.Curve, name: str = None, channel_names: list = None, rate: int = None)[source]

Bases: object

disconnect()[source]
init(plot_windows: int | list = None, **kwargs)[source]

This function is used to initialize the qt app.

Parameters:

plot_windows (Union[int, list]) – The number of frames ti plot. If is a list, the number of frames to plot for each subplot.

update(data: ndarray | list, **kwargs)[source]

This function is used to update the qt app.

Parameters:

data (Union[np.ndarray, list]) – The data to plot. If it is a list, the data to plot for each subplot.

class biosiglive.gui.plot.OfflinePlot[source]

Bases: object

This class is used to plot data offline.

static multi_plot(data: list | ndarray, x: list | ndarray = None, nb_column: int = None, y_label: str = None, x_label: str = None, legend: list | str = None, subplot_title: str | list = None, figure_name: str = None)[source]

This function is used to plot multiple data in one figure.

Parameters:
  • data (list or np.ndarray) – The data to plot.

  • x (list or np.ndarray) – The x-axis data.

  • nb_column (int) – The number of columns in the figure.

  • y_label (str) – The y-axis label.

  • x_label (str) – The x-axis label.

  • legend (list or str) – The legend of the data.

  • subplot_title (str or list) – The title of the subplot.

  • figure_name (str) – The name of the figure.

Module contents