#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "columnhead_1" jsdir "." # set output 'columnhead.1.js' 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 ## 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]