pswamp.visualization.time_window_plot

Attributes

config

Classes

TimeSeriesPlot

Basic time series plot. Adds date axis, background color, legend, etc.

TimeWindowPlot

Time window plot with automatic updating from most recent values in time window.

AnglePlot

Time window plot with automatic updating from most recent values in time window.

Functions

plot_time_window(kafka_kwargs[, update_freq])

run_time_window_plot(*config_args[, update_freq, ...])

Module Contents

class pswamp.visualization.time_window_plot.TimeSeriesPlot(title='', datetime_xaxis=True, background_color=(30, 63, 64))

Bases: pyqtgraph.GraphicsLayoutWidget

Basic time series plot. Adds date axis, background color, legend, etc.

plotWidget
plots = []
add_plot(color='lightgray', width=2, **kwargs)
class pswamp.visualization.time_window_plot.TimeWindowPlot(tw, update_freq=10, title='', datetime_xaxis=True, background_color=(30, 63, 64), col_idx=None, col_sel=None, *args, **kwargs)

Bases: PySide6.QtWidgets.QWidget

Time window plot with automatic updating from most recent values in time window.

tw
channel_names = []
graphWidget
colors
plotWidget
pl = []
update()
request_update()
class pswamp.visualization.time_window_plot.AnglePlot(*args, subtract_mean=True, **kwargs)

Bases: TimeWindowPlot

Time window plot with automatic updating from most recent values in time window.

subtract_mean = True
update()
pswamp.visualization.time_window_plot.plot_time_window(kafka_kwargs, update_freq=25, **kwargs)
pswamp.visualization.time_window_plot.run_time_window_plot(*config_args, update_freq=25, channel_selection_idx=None, **kwargs)
pswamp.visualization.time_window_plot.config