#!/usr/local/bin/gnuplot -persist # set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'datastrings.2.png' set boxwidth 0.3 absolute set style fill solid 1.00 border lt -1 set grid nopolar set grid noxtics nomxtics ytics nomytics noztics nomztics nortics nomrtics \ nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics set grid layerdefault lt 0 linecolor 0 linewidth 0.500, lt 0 linecolor 0 linewidth 0.500 set key fixed right top vertical Right noreverse enhanced autotitle columnhead nobox set pointsize 2 unset parametric set xtics border in scale 0,0 mirror norotate autojustify set xtics norangelimit set xtics () set ytics border in scale 0,0 mirror norotate autojustify set ztics border in scale 0,0 nomirror norotate autojustify set cbtics border in scale 0,0 mirror norotate autojustify set rtics axis in scale 0,0 nomirror norotate autojustify set title "Read tic labels from a datafile column\nusing 'using ($0):2:xticlabels(1)'" set xrange [ -0.500000 : 11.5000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set ylabel "mm" set yrange [ 0.00000 : 180.000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set bmargin 3 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 ($0-0.2):2 index 0 with boxes title "precipitation 1992-2000", '' using ($0+0.2):2 index 1 with boxes title " 2000-2001", '' using ($0):2 index 2 with linespoints lw 3 title "runoff 1992-2000", '' using ($0):2:xticlabels(1) index 3 with linespoints lw 3 title " 2000-2001"