!g++ -O2 cvc.cc -o cvc
!./cvc >dat 2>hb

set term pdfcairo size 11,19
set out "tmp.pdf"

unset key

set multi lay 8,1

set ylabel "pre-I/I"; plot "dat" u 1:2 w l
set ylabel "early-I"; plot "dat" u 1:3 w l
set ylabel "aug-E"; plot "dat" u 1:4 w l
set ylabel "post-I"; plot "dat" u 1:5 w l
set ylabel "ramp-I"; plot "dat" u 1:6 w l
#plot "dat" u 1:7 w l
#plot "dat" u 1:8 w l
#plot "dat" u 1:9 w l
#plot "dat" u 1:10 w l
set ylabel "tidal volume"; plot "dat" u 1:11 w l
#plot "dat" u 1:12 w l
set ylabel "blood pressure"; plot "dat" u 1:13 w l
#plot "dat" u 1:14 w l
set ylabel "heart rate"; plot "hb" u ($5/1000):(1000/$6) w lp

unset multi
