Problems with printing plot to pdfcairo terminal
John W. Eaton
jwe at bevo.che.wisc.edu
Thu Aug 21 13:20:26 CDT 2008
On 10-Aug-2008, Torquil Macdonald Sørensen wrote:
| --------
| Bug report for Octave 3.0.1 configured for i486-pc-linux-gnu
|
| Description:
| -----------
|
| * The following works fine in gnuplot CVS version (4.3 patchlevel 0):
|
| set terminal pdfcairo
| set output "plot.pdf"
| plot [0:1] x
|
| and it gives a very nice pdf. The pdf page size fits perfectly
| around the plot.
|
| When I try print("plot.pdf", "-dpdfcairo") after making a plot in
| octave, I get a large portrait a4 or letter format page (not sure
| which one), with the plot at the bottom. In addition, the file is
| called "pdfcairo:plot.pdf". When I use the other print devices,
| e.g. eps or png, then the output page format is correct, and the
| filename is what I specify.
|
|
| Repeat-By:
| ---------
|
| * Make a simple plot, then run print("plot.pdf", "-dpdfcairo")
The problem is that the print function does not recognize the pdfcairo
device so it generates an EPS file and also constructs a final
filename of the form DEV:NAME and then uses the ImageMagick convert
utility to attempt to convert the EPS file to the new format.
If you want to fix this problem, then you will need to modify the
print.m function to recognize the pdfcairo device.
jwe
More information about the Bug-octave
mailing list