In the method using the drawing tools gnuplot desired transmission parameters
A clear set of parameters as a character variable in the official document:
ARG0,ARG1,...,ARG9
Wherein ARG0 represents the name of the script, the remainder being passed parameter value; and an integer variable ARGC record the number of parameters passed.
The document points out, the command can pass arguments to Call , with its load command like (load can not pass parameters), it has entered the gnuplot, use the command:
call "input_script_file" <param-1> <param-2> <param-3>... <param-9>
If you use a shell script, use the command:
gnuplot -c "input_script_filename" <param-1> <param-2>... <param-9>
It is noted that, if the script contains quotation marks content as a parameter, then pass parameters also to be quoted, such as the drawing file, save the file as a parameter.
Here's an example of when I applied
Normal gnuplot script content
set xrange [0:60]
set yrange [0:1.2]
set xlabel "Time(s)"
set ylabel "Rates"
set terminal png
set ouput "test.png"
set "test.data" w lp
If we need to batch and save the drawing, you will need to save the file with parametric drawing file, as follows
set xrange [0:60]
set yrange [0:1.2]
set xlabel "Time(s)"
set ylabel "Rates"
set terminal png
set ouput ARG2
set ARG1 w lp
Application command in a shell script
#!/bin/bash
...
gnuplot -c 'script.pl' "test.data" "test.png"
...
These are the settings when my application in, welcome to correct me comment!