GNUPLOT CDF issue

Hi,

I'm trying to generate a cdf graph using gnuplot's smooth cumulative function.

Here is the input file

34.3
19.2
20.7
28.3
32.5
21
37.6
48.8
44.2
18.1
29.2
20.4
34.4
26.5
43.6

and here is the script that I am using

set terminal postscript 24 "Times-Roman"
set size 1,1
set output 'plot.eps';

cnt1=`grep -c ''  complete_a.txt`

plot    "complete_a.txt" using 1:(1./cnt1) title "Ad1" smooth cumulative  ls 20 lw 4

The output that I get (not able to attach a file here, but should give the same output if you run the script on the data above) doesn't connect to the origin, and since I am generating the points automatically with gnuplot's help I am not sure how to get this done.

Help me....!!

Not in front of a prompt to test. But is that ";" needed in

set output 'plot.eps';

Thanks for the response. I solved this issue using my own script. It can be found here

http://www.unix.com/shell-programming-and-scripting/248167-generate-points-cdf.html
1 Like