GNUPLOT CDF issue


 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support GNUPLOT CDF issue
# 1  
Old 06-09-2014
Error GNUPLOT CDF issue

Hi,

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

Here is the input file

Code:
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

Code:
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....!!
# 2  
Old 07-28-2014
Not in front of a prompt to test. But is that ";" needed in
Code:
set output 'plot.eps';

# 3  
Old 07-29-2014
Thanks for the response. I solved this issue using my own script. It can be found here
Code:
https://www.unix.com/shell-programming-and-scripting/248167-generate-points-cdf.html

This User Gave Thanks to jamie_123 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Generate points for cdf

Hi, I am trying to make a cdf curve from the following data. 34.3 19.2 20.7 28.3 32.5 21 37.6 The output should be something like this: 0 0 19.2 0.14 20.7 0.28 (3 Replies)
Discussion started by: jamie_123
3 Replies

2. Shell Programming and Scripting

gnuplot do not take my variable

Hi! i want to print ot my data of the last seven days with gnuplot. in a script i put my gnuplot-script and at the top i generate my date-variable. #/bin/bash -e # Gnuplot script "API_Status.txt" # set terminal postscript color landscape dl 2 lw 2 'Helvetica' 15 ; # set output... (2 Replies)
Discussion started by: IMPe
2 Replies

3. Shell Programming and Scripting

Gnuplot command

My data input looks like this: -16.25 -38.75 9.69094 -16.25 -36.25 10.0594 -16.25 -33.75 10.3884 -16.25 -31.25 10.6653 -16.25 -28.75 10.7947 -16.25 -26.25 10.8838 -16.25 -23.75 10.8463 -16.25 -21.25 10.8131 -16.25 -18.75 10.7509 -16.25 -16.25 10.6581 -16.25 -13.75 10.6859 -16.25... (0 Replies)
Discussion started by: programmerc
0 Replies

4. Shell Programming and Scripting

gnuplot set key issue

Hi I have a plotting function like this- plot '../processing_old/time0.txt' using 1:6 title "1.6" with boxes fs solid 0.05 ls 5,\ 'time0.txt' using 1:6 title "1.7" with boxes fs solid 0.05 ls 6,\ '../processing_new/time0.txt' using 1:6 title "2.0" with boxes fs solid... (8 Replies)
Discussion started by: jamie_123
8 Replies

5. UNIX for Dummies Questions & Answers

Need help! How to gnuplot a picture??

I would like to ask if I have already plot a graph using gnuplot, the setting(made by others) is in "gnuplot.defaults": gnuplot> load '<ParadisDir>/inputs/gnuplot.defaults' gnuplot> splot 'box.in' with lines, '0t0001' w lines How to transform it to bmp file? (or other types of pictures?) ... (2 Replies)
Discussion started by: kelvin490
2 Replies

6. Shell Programming and Scripting

xargs and gnuplot

Hi All, Seems I have an xargs stdin problem that I don't understand. I have a script (call it myscript.sh) that takes the names of one or more file(s) specified on the command line and creates a single gnuplot command file containing multiple records, one for each specified file. Each of... (9 Replies)
Discussion started by: paulianna2002
9 Replies

7. UNIX and Linux Applications

gnuplot limitations

I'm running a simulation (programmed in C) which makes calls to gnuplot periodically to plot data I have stored. First I open a pipe to gnuplot and set it to multiplot: FILE * pipe = popen("gnuplot", "w"); fprintf(pipe, "set multiplot\n"); fflush(pipe); (this pipe stays open until the... (0 Replies)
Discussion started by: sedavidw
0 Replies

8. UNIX and Linux Applications

GNUplot

Hi, I am trying to make a plot of an ASCII file using GNUplot, but I keep getting error msg: for example plot filename.txt It says that (.txt ) is not identified ... I tried to write it without the .txt part, but I also get the error msg. Any idea why? :confused: (1 Reply)
Discussion started by: cosmologist
1 Replies

9. UNIX for Dummies Questions & Answers

Help with gnuplot

Hi, I am a beginner using UNIX, and was wondering how to use gnuplot from UNIX on my pc. I am connected remotely to my work's UNIX server using Secure Shell Client, and gnuplot won't open a new window when I use the plot command. How do I do this? Moreover, is it possible to save things from the... (0 Replies)
Discussion started by: KTTFB64
0 Replies
Login or Register to Ask a Question