Message Boards Message Boards

1
|
663 Views
|
2 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Plot run workout data: duration and pace

Posted 3 months ago

Hello,

I am playing with Mathematica to learn data visualization. Among the data I have to play with are my workouts with heart rate, time, pace, and others. I can plot some data, but I got stuck on how to plot the pace based on the time. The data that I have are in a .csv file, with time ranging from "00:02:20", "00:02:21", "00:02:22", and pace like "05:22", "05:21", "05:29". Can I have the y-axis in the "minutes:seconds" format? How can I plot that data?

One of the errors I get is:

DateListPlot::dtvals: Unable to automatically determine horizontal coordinates for the given data and DataRange.

My attempt below results in an empty graph. I have already tried variations of the command below with no success.

febdata = 
SemanticImport["file.CSV"];    
DateListPlot[
Transpose[{Normal[febdata[3 ;; All, "Sport"]], 
Normal[febdata[3 ;; All, "Duration"]]}]]

I appreciate any help you can provide.

2 Replies
Posted 3 months ago

Maybe something like this:

POSTED BY: Denis Ivanov

Thank you very much! That was precisely what I was looking for.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract