If I use gnuplot, I can print a plot into png file. And I do install ghostscript. But if I switched to octplot. It complains that It requires ghostscript. Do I need to tell octplot the path of ghostscript? And how?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think this is indeed a problem of octave/octplot not finding your installed version of ghostscript.
As a workaround, you can hardcode the location into print.m.
at the octave prompt type "which print" , and edit the file
The problematic lines are 108-118, and especially line 108 which fails in windows since there is no "which" commands. You can replace these with the location of your gs.exe
Shai
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To get the work around to work I had to move gswin32.exe to a directory with no white space. It wound not work when gswin32.exe version 8.54 is in its default location.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I installed MSVC compiled Octave 2.9.9+ CVS version of octave with a Windows installer in my Windows XP. http://www.dbateman.org/?page=octave&lang=EN
If I use gnuplot, I can print a plot into png file. And I do install ghostscript. But if I switched to octplot. It complains that It requires ghostscript. Do I need to tell octplot the path of ghostscript? And how?
Thanks!
I think this is indeed a problem of octave/octplot not finding your installed version of ghostscript.
As a workaround, you can hardcode the location into print.m.
at the octave prompt type "which print" , and edit the file
The problematic lines are 108-118, and especially line 108 which fails in windows since there is no "which" commands. You can replace these with the location of your gs.exe
Shai
Yes, After I hard coded the path/exe for ghostscript. It works now. thank you!
I have another question however, in this Octave/Mingw version, I can not close a plot using "close" or "close all".
If octplot_command("delete",gcf()); is used, Windows pops up an error window.
Can you please report this as a bug?
please include the octave version and exactly what error (probably not very usefull, but just in case)
Shai
I have submitted a bug report. Thanks!
To get the work around to work I had to move gswin32.exe to a directory with no white space. It wound not work when gswin32.exe version 8.54 is in its default location.