# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'logic_timing.1.png' unset border set style fill solid 0.20 border rgb "black" set format y "bit %.0g" unset key set style data lines unset xtics set ytics border in scale 0,0 mirror norotate offset character 0, 0.3, 0 autojustify set ytics norangelimit 1.00000,1 ,8.00000 unset ztics unset cbtics unset rtics set title "Logic timing of bits in sequential ASCII characters" set title font ":Bold" textcolor lt -1 norotate set xrange [ 0.500000 : 8.00000 ] noreverse set yrange [ 0.00000 : 9.00000 ] noreverse set tmargin 4 bit(i) = (DATA[column(1)] >> (i-1)) & 0x1 char(i) = sprintf( "%c", DATA[i] ) NO_ANIMATION = 1 array DATA[7] = [103,110,117,112,108,111,116] ## Last datafile plotted: "@@" plot for [k=1:8] DATA using 1:(0.8 * bit(k)):(0.5) with hsteps offset k lw 2 fc black, for [k=1:8] DATA using 1:(k):(bit(k)?"1":"0") with labels offset 0,1 font ",9", DATA using 1:(0.5):(char($1)) with labels font ",16" tc 'blue'