# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'columnhead.1.png' set format x "line %.0g" set key title "Columns" enhanced center set key fixed right top vertical Right noreverse enhanced autotitle columnhead box lt black linewidth 1.000 dashtype solid set key noinvert samplen 0 spacing 1 width 2 height 0 set offsets 1, 1, 1, 1 set style data lines set xtics norangelimit 1.00000,1 ,4.00000 set title "Point labels show which column they came from" set xlabel "Line in data file" set ylabel "Column values" NO_ANIMATION = 1 ## Last datafile plotted: "$DATA" plot for [col=1:*] $DATA using (1+$0):(column(col)):(columnhead(col)[2:2]) with labels title columnhead(col)[2:2]