Octave 3.1.55: printing to pdf

Petr Mikulik mikulik at physics.muni.cz
Sun Apr 5 02:47:47 CDT 2009


Printing to pdf (via gnuplot backend) is broken in Octave 3.1.55 even though 
gnuplot accepts "set term pdf" via "pdfcairo" terminal.


> plot(1:100); print a.pdf -dpdf

error: gnuplot_drawnow: the gnuplot terminal, "pdf", is not available.
error: called from:
error:   
/opt/octave/octave-3.1.55/share/octave/3.1.55/m/plot/gnuplot_drawnow.m at 
line 72, column 7


It seems that gnuplot_drawnow.m requires exact match of terminal names in 
3.1.55. However, gnuplot names the pdf terminal "pdf" or "pdfcairo" 
according to the library it was compiled against. In both cases "set term 
pdf" works.

I think gnuplot_drawnow.m should test presence of "pdfcairo" if "pdf" has 
not been found.

If I try
	print zz.png -dpngcairo
	print zz.pdf -dpdfcairo
it produces these two files:
	pngcairo:zz.png
	pdfcairo:zz.pdf
Why the prefix there?

---
PM


More information about the Bug-octave mailing list