Monday, September 20, 2010

gnuplot: Range Plot

# Range plot script written on 31 Aug 2009
# Punctuation of any kind is likely a crucial part of the script, and should be left untouched.
# Sections that are optional are enclosed with tags.

# Datafile looks like this:
# 1 54.96876 1425.523 757.3601 5 79.70358 2722.085 956.1428
# 2 11.31661 2247.381 981.4445 6 39.31570 1119.610 638.5529
# 3 142.9088 2125.066 1169.924 7 134.9087 2153.851 678.3504
# 4 171.1888 2908.621 1223.032
set output 'test1.png'
set title "RANGE PLOT BETA"
#
# set xrange [X1:X2] # where X2>X1
# set yrange [0:3500] # where Y2>Y1
# set key outside right
#
set xtics ("P01" 1.00000, "P02" 2.00000, "P06" 3.00000, "P07" 4.00000, "P03" 5.00000, "P04" 6.00000, "P05" 7.00000)
set xlabel "STATIONS"
set ylabel "CONCENTRATION (MG/KG DRY)"
# plot "FILENAME.EXT" using X:Y1:Y2 with filled curves, "" using X:Y1, "" using X:Y2...
plot "1.txt" using 1:2:3 with filledcurves ti "Nearfield Baseline Range", "" using 1:2 with lines notitle, "" using 1:3 with lines notitle, "" using 1:4 with linespoints ls 17 ti "Mean if Nearfield Range", "" using 5:6:7 with filledcurves ti "Farfield Baseline Range", "" using 5:6 with lines notitle, "" using 5:7 with lines notitle, "" using 5:8 with linespoints ls 7 ti "Mean of Farfield Range"

No comments:

Post a Comment