On Sun, Apr 18, 2010 at 02:42:32PM +0200, Eugen Dedu wrote: > Vincent Lefevre wrote: > > On 2010-04-07 19:57:02 +0200, Eugen Dedu wrote: > >> Just use: > >> set terminal pdfcairo > >> > >> So these two bugs could be closed I think. > > > > No, pdfcairo generates an empty PDF file with gnuplot 4.4.0-1. > > Well, I discover that it is not the 'plot' command itself which saves in > the pdf file, but quitting gnuplot does so. > > Example: > set output "p.pdf" > set terminal pdfcairo > plot x > > So these bugs should be closed and create another one "in pdfcairo > terminal, plot itself does not write to file, but quitting gnuplot > does". I looked into the documentation from www.gnuplot.info and have > not found anything about that, so this is clearly a bug.
The underlying problem in your example above is that output is not closed until told to. That should happen on gnuplot quit or output re-definition. IIRC that also happened in other terminals. Something like set output "p.pdf" set terminal pdfcairo plot x set output should work. The idea is that you may want to add more things before output is closed, set output "p.pdf" set terminal pdfcairo plot x plot x**2 set output should create a two page pdf with both graphs. -- Agustin -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org