Sponsored Content
Top Forums Shell Programming and Scripting Gnuplot shell script controlled animation Post 302275400 by darius2 on Saturday 10th of January 2009 06:41:24 AM
Old 01-10-2009
Quote:
Originally Posted by darius2
Thanks.
In the meantime tested file.plt
run as any another shell script with plot commands
and it worked.

One issue is interaction and parameters entering for interaction and animation.
plot "-" command doesn't work withing .plt script

====================
./loop3.plt

plot "-"
^
"./loop3.plt", line 5: Bad data on line 1

======================
does work as
gnuplot > plot "-"
======================
4.9 Can I put both commands and data into a single file?

This is possible by the new plot "-" possibility. The plot "-" command allows to read the data to be plot from standard input or the current batch job.

gnuplot> plot "-"
1 1
2 4
3 9
e
follow-up 2
=====================

What Wikipedia says for BATCH JOB
"
Batch processing is execution of a series of programs ("jobs") on a computer without human interaction.
Batch jobs are set up so they can be run to completion without human interaction, so all input data is preselected through scripts or command-line parameters. This is in contrast to "online" or interactive programs which prompt the user for such input. A program takes a set of data files as input,process the data,and produces a set of output data files.This operating environment is termed as "Batch Processing" because the input data are collected into Batches on files and are processed in Batches by the program.
"
Ok my friends.
So finally.


1.Gnuplot can read off-line data from datafile.dat,


2. Plot script can made of plot commands and run as shell script,


3. data input can be generated on-the-fly by another program/script

as batch job, and shell escape command is just -
plot "-" ... any data ... "e"

4. Plot file.plt can be generated on-the-fly by another program/script
as batch job
my question is, if commands in batch job script should be like
echo "plot "-""
echo "set terminal dumb"
or
print "plot "-""
print "set terminal dumb"

or look quite different to generate plot file file.plt ?

So, as you can see.
One good example can give answers to all of my questions.

Example of plot script generated by another program/script as batch job,
reading data input generated by one another program/script +
terminal, interactive data input like
plot "-"
any data
"e" to close data input from a command line.

===============
Neo administrator, in another Makefile generated by a script... thread
asked me, why my questions are so hard to understand for people
"
Thank you for your post, it is a bit hard for people to understand you. Could you be very specific about how we can help you, one question at a time? Thanks.
"

Frankly speaking, what I am looking for, is a problem solution.
What Neo suggested is to ask very basic questions, one question at a time.
I am sure, many experienced Shell scripters can answer either basic or more problem-oriented specific questions.

As I said above, one good Gnuplot plot example showing all the features I mentioned I exactly what I am looking for.

Neo asked me to make my problem-oriented specific questions as a series of very basic specific questions.
I really don't know what is an idea of flooding a forum with a number of questions if one problem-oriented specific question (REQUEST FOR EXAMPLE) is all I am looking for.

I can assure Neo, to ask more questions in a future.
Tonight, I have to solve very basic problem and learn how to use Gnuplot.

And I can assure you, that my Gnuplot problem-oriented specific question (request) is not really complicated for an experienced user of Gnuplot.

As a beginner to Gnuplot I have asked very very basic question.

Request for information, HowTo, HowItWorks, reference web sites
is in no way any violation of Unix forum standing rules, guidelines or standards.

What's more, at some Unix forums, people asking questions are requested to exactly ask one problem-oriented specific question not to flood a forum with a number of very basic questions, generating many threads.

Gnuplot plot is just another scripting language.
That's all.
And it makes no sense to spend a week, a month on mastering some Gnuplot related stuff if one good example is all I am looking for.

Already spent 2 nights visiting many Gnuplot devoted web sites.
So please don't tell me that my request is a complicated one.

I am asking just for one good example, nothing more and some discussion with experienced Gnuplot plot scripter.

Happy New Year
greetings,

Darius
 

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
All times are GMT -4. The time now is 07:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy