Visualizing#

Visualizing BeForRecord data

To use this module, please install the python library matplotlib.

This module is currently under development. The beta version provides support for plotting BeForRecord data.

befordata.plot.plot_record(rec[, win_width, ...])

This function visualizes the data contained in a BeForRecord object using an interactive plot.

befordata.plot#

plot_record(rec, win_width=100, y_factor=1.1, time_scaling_factor=None, figsize=(14, 4))#

This function visualizes the data contained in a BeForRecord object using an interactive plot. It supports optional time scaling and windowing for large datasets.

Parameters:
recBeForRecord

The BeForRecord instance containing the data to plot.

win_widthint, optional

The width of the interactive window (number of samples), by default 100.

y_factorfloat, optional

Factor to scale the y-axis for better visualization, by default 1.1.

time_scaling_factorfloat or None, optional

If provided, scales the time axis by this factor. Must be a positive number or None. If None, no scaling is applied unless a time column is missing, in which case it defaults to 1.

figsizetuple, optional

Size of the figure in inches (width, height), by default (14, 4).

Raises:
AssertionError

If time_scaling_factor is not None and is not a positive number.