I'm sorry, this has probably been covered, but I'm having no luck finding a solution after an hour of searching. I'm using Octave Ver 3.6.0 with Windows XP, and not able to create a pdf from a plot. If I use the following code:
I would have suggested the -dpdf option as well, and someone more
experienced with octave may be able to help you get it working. One idea
as a temporary workaround: try -deps or -dps to create a postscript
file, and convert to PDF using adobe distiller or the ps2pdf utility.
> I'm sorry, this has probably been covered, but I'm having no luck finding a
> solution after an hour of searching. I'm using Octave Ver 3.6.0 with
> Windows XP, and not able to create a pdf from a plot. If I use the
> following code:
> title('SPL vs. Frequency, 16kHz')
> legend('On Axis','5 Deg','10 Deg','15 Deg','20 Deg','25 Deg','30 Deg','35
> Deg','40 Deg','45 Deg','50 Deg','55 Deg','60 Deg','65 Deg','70 Deg','75
> Deg','80 Deg','85 Deg','90 Deg','Location','SouthEastOutside')
> print figure1.pdf
> My figure plots, but no file is created. If I change the file extension as
> follows: figure1.gif, then I have a gif file created. I really need to make
> a pdf out of this data... Please help.
> Thank you,
Please add "-debug" to the print statement and tell us what the result is.
Perhaps the file has been printed in an unexpected directory.
You might try using "Windows Search" to see if you can find it (I note that you called it "figure1.pdf").
Alternatively, you might try including the explicit directory path (I'm afraid I gave up on Windows some time ago and I don't know how to specify the path to eg your Desktop in the recent versions eg Windows 7).
In Linux, to print in my home folder, the command would be
> print -dpdf /home/david/filename.pdf
From fading memory, I think it will go to the root directory (C:\) in Windows with
> print -dpdf C:\filename.pdf
I guess that would not be convenient but you could change the path to one of your choice.
(Caution: if you're not familiar with Linux, note that filepaths use forward slashes in Linux and backward slashes in Windows)
However good you think Octave is, it's much, much better.