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