#!/usr/local/bin/gnuplot -persist # set terminal svg size 600,400 dynamic enhanced font 'arial,10' mousing name "columnhead_1" butt dashlength 1.0 # set output 'columnhead.1.svg' set format x "line %.0g" set key title "Columns" 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 xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback set ylabel "Column values" set yrange [ * : * ] noreverse writeback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault 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]