#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "datastrings_1" jsdir "." # set output 'datastrings.1.js' set key fixed right top vertical Right noreverse enhanced autotitle columnhead nobox set label 1 "Generate plot labels from first row in each column" at graph 0.02, 0.85, 0 left norotate back textcolor rgb "#56b4e9" nopoint set label 2 "Generate x-axis labels from first column in each row" at graph 0.02, 0.8, 0 left norotate back textcolor rgb "#56b4e9" nopoint set style data linespoints set xtics norangelimit set xtics () set title "Auto-labeling plots from text fields in datafile" set xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback set ylabel "mm" set yrange [ 0.00000 : 200.000 ] noreverse nowriteback 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: "ctg-y2.dat" plot 'ctg-y2.dat' using 2:xticlabel(1) index 2, '' using 2 index 3