38 lines
1.4 KiB
Gnuplot
38 lines
1.4 KiB
Gnuplot
# Copyright (C) 2026 Asger Gitz-Johansen
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
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"
|