gnuplot demo script: stringvariables.dem

autogenerated by webify.pl on Sat Oct 9 18:08:29 2004
gnuplot version gnuplot 4.1 patchlevel 0
#
# Miscellaneous neat things you can do using the string variables code
#
set xrange [300:400]
set title "String-valued expression in using spec"
plot 'silver.dat' using 1:2 with linespoints notitle, \
     '' using 1:2:(sprintf("[%.0f,%.0f]",$1,$2)) with labels
#


#
set xrange [0:1]
set yrange [0:1]
set title "Constant string expressions as plot symbols"
set xrange [250:500]
set auto y
set style data lines
plot 'silver.dat' u 1:2:($3+$1/50.) w filledcurves above title 'Above', \
     '' u 1:2:($3+$1/50.) w filledcurves below title 'Below', \
     '' u 1:2 lt -1 lw 0 notitle, \
     '' u 1:($3+$1/50.) lt 3 lw 0 notitle, \
     '' using 1:2:( ($2>($3+$1/50.)) ? "Up" : "Dn" ) with labels \
        title 'plot <foo> using 1:2:( ($3>$2) ? "Up" : "Dn" ) with labels'
#


#
plot 'silver.dat' \
        u 1:2 lt -1 lw 0 notitle, \
     '' u 1:($3+$1/50.) lt 3 lw 0 notitle, \
     '' using 1:2:( ($2>($3+$1/50.)) ? "J" : "D" ) with labels font "wingding,28"\
        title 'Same thing using character glyphs from WingDings font'
#


#