Created a simple example script for showing HR plot.

This commit is contained in:
Filip 2025-03-16 13:40:29 +01:00
parent 5a27831dd4
commit 7d4701948f

12
example.py Normal file
View file

@ -0,0 +1,12 @@
from analyze_sport_data import heart_rate_dataframe
from analyze_sport_data.file_records import from_fit_file
from matplotlib.pyplot import show
from os import scandir
data = [
from_fit_file(file.path, file.name) for file in scandir(".")
if file.name.endswith(".fit") and file.is_file()
]
heart_rate_dataframe(data).plot()
show()