help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Help with saveas and fltk


From: Rick M. Cox
Subject: RE: Help with saveas and fltk
Date: Mon, 3 Jun 2013 12:56:42 -0700


-----Original Message-----
From: Ben Abbott [mailto:address@hidden 
Sent: Monday, June 03, 2013 1:19 AM
To: Rick M. Cox
Cc: 'help-octave Octave'
Subject: Re: Help with saveas and fltk


On Jun 3, 2013, at 1:35 PM, Rick M. Cox wrote:

> -----Original Message-----
> From: Ben Abbott [mailto:address@hidden 
> Sent: Sunday, June 02, 2013 9:17 PM
> To: Rick M. Cox
> Cc: help-octave Octave
> Subject: Re: Help with saveas and fltk
> 
>> On Jun 3, 2013, at 8:29 AM, Rick M. Cox wrote:
>> 
>>> Ok. The problem can be fixed by installing Octave using a path with no
>>> spaces in it.
>>> 
>>> There may be other solutions.  If so, perhaps a windows user can offer
>> some
>>> help.
>>> 
>>> Ben
>>> 
>>> 
>>> Ben:
>>> 
>>> I will install Octave using a path with no spaces in it.
>>> 
>>> I am curious.  Are my problems peculiar to "fltk"?  "gnuplot" performs
>>> flawlessly with any 'print' or 'saveas' command I give it even though
>> Octave
>>> is currently in a path with white spaces.
>>> 
>>> Also, do I need to install Ghostscript in a directory with no spaces?
>>> 
>>> Thanks,
>>> 
>>> Rick
>> 
>> For eps output, I would expect a problem with both fltk and gnuplot.  If
you
>> are comfortable trying to debug the problem, I can offer some
suggestions.
>> Also be sure the "relpy-all".  There may be some other windows users who
>> have already resolved this problem on the mail-list.
>> 
>> Ben
> 
> Ben:
> 
> I installed Octave to a path with no white spaces with "fltk" as the
default
> graphics package.  All 'print' and 'saveas' commands fail in exactly the
> same way they did when Octave was in a path with white spaces.  Apparently
> this does not fix my problem.
> 
> To summarize:
> 'gnuplot' works flawlessly with any 'print' or 'saveas' command I give
> Octave whether it is in a path with a white space or not.
> 
> 'fltk' fails with any 'print' or 'saveas' command I give Octave whether it
> is in a path with a white space or not.  In these cases either nothing
> happens (no file is saved) or the figure window becomes unresponsive,
Octave
> displays: 'D:\Program' is not recognized as an internal or external
command,
> 
> operable program or batch file and then becomes unresponsive as well.
> 
> Rick

To determine what is happening please edit __print_fltk__.m and remove the
semicolon from the end of line 149.  The resulting line is below.

  opts.pipeline = pipeline

It you don't know where to find this file, type the command below in Octave.

        strrep (which ('plot'), 'plot.m', sprintf
('private%s__print_fltk__.m', filesep))

Once the semicolon has been removed from the end of line 149, try ...

        close all
        graphics_toolkit fltk
        plot (rand (3))
        plot -depsc test.eps

And copy-n-paste everything that octave prints in its windows into your
replay to this email.

Ben


Ben:

I found and modified the opts.pipeline = pipeline line as you instructed.

I plotted my drawing that I'm having trouble with.  I then tried to print it
using the print -depsc test.eps command.  The figure window became
scrambled, Octave printed a bunch of diagonistics and then hung up.  I was
unable to copy and paste the output.

Is the problem that Ghostscript is still in a path that contains
whitespaces?

I can reinstall Ghostscript to a directory without white spaces but it will
have to wait until later today.

Rick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]