|
From: Vic N. <vi...@no...> - 2011-03-09 16:07:37
|
I am having a problem with the gnuplot terminal in Gnuplot 4.4.2.
I wonder if anyone has an idea why.
Here is the problem. First I apply gnuplot to a simple script file from
bash:
$ gnuplot test_pdfcairo.np
The result is a good "test_pdfcairo.pdf".
The script file "test_pdfcairo.np" reads
#!/usr/local/bin/gnuplot
set term pdfcairo
set output "test_pdfcairo.pdf"
test
So far so good. Now I open the gnuplot terminal and execute the same
instructions from the terminal:
$ gnuplot
G N U P L O T
Version 4.4 patchlevel 2
...
gnuplot> set term pdfcairo
Terminal type set to 'pdfcairo'
Options are ' size 5.00in, 3.00in '
gnuplot> set output "test_pdfcairo.pdf"
an empty "test_pdfcairo.pdf" is created
gnuplot> test
supposedly "test_pdfcairo.pdf" is filled with the "test" pattern
Unfortunately the new "test_pdfcairo.pdf" is no good. When I try to
open it with Adobe Reader I get the message
There was an error opening this document.
The file is damaged and could not be repaired.
Apparently there is nothing wrong with the pdfcairo terminal in
Gnuplot, but I cannot use the pdfcairo terminal from the
Gnuplot terminal.
I have the same problem with the epslatex terminal in Gnuplot.
When I run
gnuplot> set term epslatex color colortext
gnuplot> set output "test_epslatex_output.tex"
gnuplot> test
the resulting "test_epslatex_output.tex" has no chance of working.
The crucial closing lines
\gplbacktext
\put(0,0){\includegraphics{test_epslatex_output}}%
\gplfronttext
\end{picture}%
\endgroup
are missing. The "test_epslatex_output.tex" file is bad as well.
Many lines are missing at the end, and the image is incomplete.
Executing the same instructions from bash
$ gnuplot test_epslatex.np
produces valid "test_epslatex_output.tex" and
"test_epslatex_output.eps" files. And the line
input "test_epslatex_output"
in an appropriate LaTeX script produces the desired test picture.
Any ideas as to the cause of this problem would be greatly appreciated.
Regards,
Vic
Mac OSX 10.6.6
Gnuplot 4.4.2
|