Appendix C — chapter2.visualization

chapter2.visualization

Provides a function to plot the collected data.

Functions

Name Description
plot_execution Generates an interactive plot with the accelerometer and gyroscope data of the specified execution.

plot_execution

chapter2.visualization.plot_execution(data_collection, execution)

Generates an interactive plot with the accelerometer and gyroscope data of the specified execution.

Parameters

Name Type Description Default
data_collection dict Dict containing the collected dataset. See: utils.data_loading.load_data() required
execution str execution data to plot. Format: ‘sXX_YY_{sp|sw}’ required

Returns

Type Description
plotly.graph_objs.Figure Interactive plot