help-octave
[Top][All Lists]
Advanced

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

Re: Octave.app for MacOSX released


From: Henry F. Mollet
Subject: Re: Octave.app for MacOSX released
Date: Sat, 14 Jul 2007 13:44:06 -0700
User-agent: Microsoft-Entourage/11.1.0.040913

Many thanks, it worked with this additional change.

I'm not sure whether I was supposed to expect problems when trying to run
Octave-2.9.12 from an xterm window in X11. So I've tried and it worked just
fine, i.e. the AquaTerm window had the correct title number x as per figure
(x) command used. I checked that the ../2.9.12/m/plot.drawnow.m which had
been amended in two steps was being used.

My ~.gnuplot does not set aqua it only contains 'set mouse' and 'set
loadpath ="....."'.
My ~.bash_profile, does contain 'export GNUTERM=aqua' and 'export
DISPLAY=:0.0'. However, this may not be relevant for X11?
I have checked my ~.xinitrc but could not find anything of relevance in it
as far as I can tell with my limited knowledge of such things.
Henry



on 7/14/07 11:54 AM, Paul Kienzle at address@hidden wrote:

> 
> On Jul 14, 2007, at 2:02 PM, Henry F. Mollet wrote:
> 
>> Below are lines 87-123 from drawnow.m where lines 109-114 are the
>> corrections that you had suggested that I use. I cannot paste the line
>> #'s
>> into this post, therefore I'm also attaching the complete m-file.
>> Henry
> 
> Okay that's what I expected to see, so I'm surprised it doesn't work.
> 
> I make a suggest below to not check the DISPLAY environment variable.
> This might be an issue if, for example, you are running octave from X11
> and have aqua set in ~/.gnuplot or GNUTERM.
> 
> - Paul
> 
>> function plot_stream = open_gnuplot_stream (h, term, file)
>> 
>>   ## If drawnow is cleared, it is possible to register __go_close_all__
>>   ## more than once, but that is not fatal.
>>   persistent __go_close_all_registered__;
>> 
>>   cmd = gnuplot_binary ();
>> 
>>   if (! isempty (h) && gnuplot_use_title_option ())
>>     cmd = sprintf ("%s -title \"Figure %d\"", cmd, h);
>>   endif
>> 
>>   plot_stream = popen (cmd, "w");
>> 
>>   if (plot_stream < 0)
>>     error ("drawnow: failed to open connection to gnuplot");
>>   else
>> 
>>     if (! isempty (h))
>>       set (h, "__plot_stream__", plot_stream);
>>     endif
>> 
>>      if (nargin == 3)
>>        fprintf (plot_stream, "set terminal %s\n;", term);
>>        fprintf (plot_stream, "set output \"%s\"\n;", file);
> 
> Try replacing:
> 
>>      elseif isempty(getenv("DISPLAY"))
> 
> with:
> 
>        else
> 
>>        fprintf (plot_stream, "set terminal aqua %d\n",h);
>>      endif
>> 
>>     if (isempty (__go_close_all_registered__))
>>       atexit ("__go_close_all__");
>>       __go_close_all_registered__ = true;
>>     endif
>> 
>>   endif
>> 
>> endfunction
> 




reply via email to

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