#!/usr/local/bin/gnuplot -persist # set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'datastrings.1.png' 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 unset parametric 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 NO_ANIMATION = 1 ## Last datafile plotted: "ctg-y2.dat" plot 'ctg-y2.dat' using 2:xticlabel(1) index 2, '' using 2 index 3