In gnuplot console check help command line options
. There is the option -e
.
You need to have the following argument for exec()
in Java.
"gnuplot -e myOutput='<YourPDF>' test.gp"
where you have to replace <YourPDF>
with your path. Since I do not know Java, the Java-people have to tell you how you get this done.
A minimal gnuplot script would for example look like the following:
set term pdfcairo
set output myOutput
plot sin(x) # or whatever
set output
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…