Sponsored Content
Top Forums Shell Programming and Scripting Gnuplot shell script controlled animation Post 302275287 by npatwardhan on Friday 9th of January 2009 04:19:34 PM
Old 01-09-2009
here is what i have tried with gnuplot:

i have used the system function in C as follows:
Code:
 system("gnuplot.exe gnu_script");

you have to include the stdlib.h file.
this function calls the gnuplot.exe file and then runs the plots for gnuplot from the gnu_script file. The gnu_script file has gnu plot commands like:

Code:
plot "try.dat" using 1 with lines
pause -1 "Press enter for next plot"
plot "try1.dat" using 2 with lines
pause -1 "Press enter for next plot"
plot "try2.dat" using 1 with lines 
pause -1 "Press enter for next plot"

dunno if this may help. just an idea.
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

3d animation

What are the benefits to using UNIX for 3d animation. I am looking into the field, and most places require a strong background in UNIX. Why is this? (3 Replies)
Discussion started by: aloysius1001
3 Replies

2. Filesystems, Disks and Memory

IDE controlled / RAID card issue Suse 9.2

I just built a new box to run Suse, and I guess I shoud have spent more time researching the HCL. Anyway, the Promise RAID card I have will not work, and I am unable to install the OS. The only other IDE devide in the box is a DVDOM. I can only think of 2 options, but would appreciate some... (1 Reply)
Discussion started by: 98_1LE
1 Replies

3. UNIX for Dummies Questions & Answers

script animation

I have read hundreds of the postings and cannot find the answer to my question...so I hope that someone is able to answer it for me. I am writing a script in bash, and would like to add animation. I have a gif file that I would like to open and have displayed on the screen. Can this be done? Of... (0 Replies)
Discussion started by: debit
0 Replies

4. Shell Programming and Scripting

Shell Script Animation

Hi, I want to write a shell script which can do some animation The animation is as follows it is like a progress barwhich hould gone on inresing with time & at the end of the line there should be the progess Eg == - 10%... (2 Replies)
Discussion started by: wojtyla
2 Replies

5. Shell Programming and Scripting

Controlled For Loop

I have a for loop and i pass in number of times i want to loop as argument to script. I have attached a snippet of my script. Problem is this does not work, if I manually replace the $NO_OF_LOOPS with a number in the script it works fine. NO_OF_LOOPS=$1 for i in {0..$NO_OF_LOOPS} ... (8 Replies)
Discussion started by: kelseyh
8 Replies

6. Shell Programming and Scripting

Passing gnuplot variables to shell script

Hi, I need to pass a gnuplot value to a shell script. I have a main shell script (Main.sh) that has a bunch of gnuplot commands. Main.sh calls another gnuplot script (Child.gnu). A part of the code in Child.gnu is as follows: sp '</data/src/scripts/results/plot_data.sh $col' u (A):2:3 w pm3d... (8 Replies)
Discussion started by: annazpereira
8 Replies

7. Shell Programming and Scripting

Using variables in gnuplot within a shell script

Hi everybody, please help me with this problem Suppose I have a script like this to run commands of gnuplot. #!/bin/sh lib=$1 old="output/old/$lib.dat" new="output/new/$lib.dat" gnuplot << EOF set logscale x set logscale y set size square set grid set pointsize 1 plot "< paste $old... (5 Replies)
Discussion started by: Dark2Bright
5 Replies

8. Solaris

In cluster configuration ora* VGs are not controlled by VCS

Need some one to explain "In cluster configuration ora* VGs are not controlled by VCS". Actually, I am not aware of this. Thanks, Rama (0 Replies)
Discussion started by: ramareddi16
0 Replies

9. Shell Programming and Scripting

Pass shell variable to gnuplot

Hi I am plotting a series of CDFs using gnuplot using plot "data" u 1:(1./x.) smooth cumulative I am doing this over many files and I need to tune the x value to the number of lines that meets a particular condition. Is it possible to get the line count from shell using cat file | grep... (7 Replies)
Discussion started by: jamie_123
7 Replies

10. Shell Programming and Scripting

Gnuplot script

Need assistance in getting a script right. It requires little tweaking and I am not getting it right . Using below data and the below script it creates a table with png file but regarding the time it create 6,7,8 and i want each time 6:15 ,6:30 and so on So that i can view the exact graph... (3 Replies)
Discussion started by: ajayram_arya
3 Replies
COMPARE-HISTOS(1)						   User Commands						 COMPARE-HISTOS(1)

NAME
compare-histos - generate comparison histograms SYNOPSIS
compare-histos [options] aidafile1[:'PlotOption1=Value':'PlotOption2=Value'] [aidafile2 ...] OPTIONS
-h, --help show this help message and exit -R, --rivet-refs use Rivet reference data files (default) --no-rivet-refs don't use Rivet reference data files -o OUTDIR, --outdir=OUTDIR write data files into this directory --hier-out write output dat files into a directory hierarchy which matches the analysis paths --plotinfodir=PLOTINFODIR directory which may contain plot header information (in addition to standard Rivet search paths) --no-rmgapbins disable attempting to remove 'gap' bins from MC histos when they don't appear in the ref file --refid=REF_ID ID of reference data set (file path for non-REF data) --linear plot with linear scale --logarithmic plot with logarithmic scale (default behaviour) --mc-errs show vertical error bars on the MC lines --no-ratio disable the ratio plot --rel-ratio show the ratio plots scaled to the ref error --abs-ratio show the ratio plots with an absolute scale --no-plottitle don't show the plot title on the plot (useful when the plot description should only be given in a caption) --style=STYLE change plotting style: default|bw|talk -c CONFIGFILES, --config=CONFIGFILES additional plot config file(s). Settings will be included in the output configuration. --show-single=SHOW_SINGLE control if a plot file is made if there is only one dataset to be plotted [default=mc]. If the value is 'no', single plots are always skipped, for 'ref' and 'mc', the plot will be written only if the single plot is a reference plot or an MC plot respectively, and 'all' will always create single plot files. The 'ref' and 'all' values should be used with great care, as they will also write out plot files for all reference histograms without MC traces: combined with the -R /--rivet-refs flag, this is a great way to write out several thousand irrelevant reference data histograms! --show-mc-only, --all make a plot file even if there is only one dataset to be plotted and it is an MC one. Deprecated and will be removed: use --show-single instead, which overrides this. -m PATHPATTERNS, --match=PATHPATTERNS Only write out histograms whose $path/$name string matches these regexes. The argument may also be a text file. -M PATHUNPATTERNS, --unmatch=PATHUNPATTERNS Exclude histograms whose $path/$name string matches these regexes -q, --quiet Suppress normal messages -v, --verbose Add extra debug messages The plot options are described in the make-plots manual in the HISTOGRAM section. AUTHOR
This manual page was written by Lifeng Sun <lifongsun@gmail.com> for the Debian system (but may be used by others). Rivet June 2012 COMPARE-HISTOS(1)
All times are GMT -4. The time now is 02:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy