How to plot individual components of a signal using TimeSeries.plot #138
-
Hello like this: markers.plot(['LHipAngles', 'LKneeAngles', 'RGroundReactionForce']) The plot() function plots all the data in the plot. Please tell me if there is a way to extract the individual values of the z-axis of ['LHipAngles', 'LKneeAngles', 'RGroundReactionForce'] , Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @gaozelle The
Or maybe better yet, you could generate a new TimeSeries that contains only the data that you need:
The second method has the benefit of also printing the events. Hope it helps you! |
Beta Was this translation helpful? Give feedback.
Hello @gaozelle
The
TimeSeries.plot
function is a somewhat basic helper function that uses Matplotlib to quickly see selected signals with events. There is no option to extract a given component of a signal. If you want more control on what you want to visualize, you can usematplotlib.pyplot.plot
directly. Assuming (maybe wrongly) some labels for your data:Or maybe better yet, you could generate a new T…