Menu

Can't print to png file

Help
2007-01-25
2013-04-25
  • Nobody/Anonymous

    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!

     
    • Shai Ayal

      Shai Ayal - 2007-01-25

      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

       
    • Nobody/Anonymous

      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.

       
      • Shai Ayal

        Shai Ayal - 2007-01-25

        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

         
    • Nobody/Anonymous

      I have submitted a bug report. Thanks!

       
    • Nobody/Anonymous

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.