|
From: Thomas S. <t.s...@fz...> - 2011-08-18 11:39:00
|
which gnuplot version are you using? 4.0.? Vintovka wrote: > > I am trying to plot a percent distribution over time from a text file. > > The first column of data in the file is date, and the sixth column is a > percentage. I would like the area above the line to be green, and the > area below to be brown. I'm getting errors that variable "above" is > undefined. > > My code is below. What am I doing wrong? > > # GPLOT.PL pseudo commands for GNUPLOT > ## IF TYPE eq ps set terminal postscript landscape color > ## IF TYPE eq eps set terminal postscript eps color > set terminal png xFFFFDD size 1280,800 > > ## IF TYPE eq png set terminal png > ## IF TYPE eq pbm set terminal pbm > set output "percent.png" > set xlabel "Date" > set ylabel "Percent" > set multiplot > set autoscale > set data style lines > set border 3 > set yrange [0:100] > set xtics border nomirror rotate > set ytics border nomirror > set origin 0.0,0.0 > set title "PERCENT OVER TIME" > set xdata time > set timefmt "%m/%d/%Y" > set format x "%m/%d/%Y" > set style fill solid 1.0 noborder > plot "data.rpt" u 1:5 w filledcurves above title 'Above', \ > "data.rpt" u 1:5 w filledcurves below title 'Below', > > Thanks! > -- View this message in context: http://old.nabble.com/Help-Plotting-Percentages-Over-Time-tp32281362p32286665.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |