set terminal pngcairo size 820,420 font "Sans,11" background rgb "white"
set output "bus4.png"
set title "buspattern.cir — 4-bit filesource counter (LSB b0 toggles fastest)"
set xlabel "time  (ns)"
set ylabel "bit (stacked, 0/1.8 V each)"
set grid xtics lc rgb "#dddddd"
set key outside right top spacing 1.2
set yrange [-0.5:11]
set xrange [0:1500]
unset ytics
# columns: 1=time 2=b3 3=b2 4=b1 5=b0 ; add vertical offsets so traces don't overlap
plot "bus4.txt" u ($1*1e9):($5+0)   w l lw 2 lc rgb "#e377c2" t "b0", \
     ""         u ($1*1e9):($4+3)   w l lw 2 lc rgb "#9467bd" t "b1", \
     ""         u ($1*1e9):($3+6)   w l lw 2 lc rgb "#1f77b4" t "b2", \
     ""         u ($1*1e9):($2+9)   w l lw 2 lc rgb "#d62728" t "b3"
