# set terminal pngcairo background "#ffffff" enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'datastrings.1.png' set key inside right top vertical Right noreverse enhanced autotitles 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 lt 3 nopoint offset character 0, 0, 0 set label 2 "Generate x-axis labels from first column in each row" at graph 0.02, 0.8, 0 left norotate back textcolor lt 3 nopoint offset character 0, 0, 0 set style data linespoints set xtics norangelimit set xtics () set title "Auto-labeling plots from text fields in datafile" set ylabel "mm" set yrange [ 0.00000 : 200.000 ] noreverse nowriteback x = 0.0 plot 'ctg-y2.dat' using 2:xticlabel(1) index 2, '' using 2 index 3