Files
sleep-detection/plots/training.gnuplot
T
agj ec06e92f0d feat: re-think how I collate the data
Vibe-coding being stupid strikes again.
2026-08-02 14:53:24 +02:00

24 lines
772 B
Gnuplot

set term qt
set title "Subject 1066528 Sleep"
# ==================== DATA =====================
# timestamp heartrate motion-avg stage
# 0 6.38561 52 0.002510 0
# 1 9.38561 52 0.002611 0
# 2 13.38564 51 0.002815 0
# 3 18.38561 52 0.004884 0
set multiplot
plot "data/output/1066528-training-set.txt" skip 1 using 2:3 w l t "Heartrate" lw 1 lc "red"
unset title
unset xtics
unset ytics
unset border
plot "data/output/1066528-training-set.txt" skip 1 using 2:4 w l t "Motion" lw 1 lc "grey"
set y2tics ("Wake" 0, "N1" 1, "N2" 2, "N3" 3, "REM" 5)
set y2range [-2:8]
plot "data/output/1066528-training-set.txt" skip 1 using 2:5 w l axes x1y2 t "Stage" lw 2 lc "blue"