GUI¶
This module defines logic for plotting exg data in real-time.
-
olimex.gui.
axes_updater
(axes, packet_reader)¶ Update exg figure.
This function will update the exg figure.
Parameters: - axes –
- packet_reader –
-
olimex.gui.
get_new_data_points
(packet_reader)¶ Return all data points in the buffer waiting to be displayed.
In between refreshes of the graph, data points will be read into a waiting buffer where they are held before they are displayed during the next refresh. The packet reader is responsible for managing that buffer.
-
olimex.gui.
show_exg
(source, source_type='port', print_timing_data=False)¶ Create and display a real-time exg figure.
This function will create a new matplotlib figure and make a call to
FuncAnimation
to begin plotting the exg.Parameters: source (str) – Serial port being sent exg packets or file path to file containing saved exg data.