[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 11:02:43 -0700 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
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
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);
elseif isempty(getenv("DISPLAY"))
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
on 7/14/07 5:13 AM, Paul Kienzle at address@hidden wrote:
>
> On Jul 13, 2007, at 10:11 PM, Henry F. Mollet wrote:
>
>>> figure(1); plot(1:10);
>>> figure(3); plot(2:11);
>>> figure(1); hold on; plot(3:12); hold off;
>> Does not quite work as expected for me. I do get two windows in
>> AquaTerm but they are *not*correctly labeled i.e. they both have the
>> same title, namely "Figure 0". The third command does add the plot to
>> the plot of the first command but one has to look at the plot to be
>> able to tell because the plots are not labeled.
>
> Can you show us the relevant bits of open gnuplot stream (or whatever
> the function at the end of drawnow.m is called)?
>
>>
>>> __gnuplot_set__ term aqua 1
>>> __gnuplot_raw__ ("plot sin(x)\n")
>> This produced a window labeled "Figure 1" with the sinusoid plotted,
>> whereas you say it produced a title saying "Figure 2" which I do not
>> understand.
>
> I mistyped. Aquaterm produced the correct title for the figure number
> I used.
>
> - Paul
>
drawnow.m
Description: Binary data
- Re: Octave.app for MacOSX released, (continued)
- Re: Octave.app for MacOSX released, Henry F. Mollet, 2007/07/11
- Re: Octave.app for MacOSX released, Owen Densmore, 2007/07/11
- Re: Octave.app for MacOSX released, Henry F. Mollet, 2007/07/12
- Re: Octave.app for MacOSX released, Paul Kienzle, 2007/07/12
- Re: Octave.app for MacOSX released, Henry F. Mollet, 2007/07/13
- Re: Octave.app for MacOSX released, Paul Kienzle, 2007/07/13
- Re: Octave.app for MacOSX released, Henry F. Mollet, 2007/07/13
- Re: Octave.app for MacOSX released, Paul Kienzle, 2007/07/14
- Re: Octave.app for MacOSX released,
Henry F. Mollet <=
- Re: Octave.app for MacOSX released, Paul Kienzle, 2007/07/14
- Re: Octave.app for MacOSX released, Henry F. Mollet, 2007/07/14
- Re: Octave.app for MacOSX released, Paul Kienzle, 2007/07/14
- Re: Octave.app for MacOSX released, Owen Densmore, 2007/07/14
- drawnow terminal type, Paul Kienzle, 2007/07/14
- Re: drawnow terminal type, Henry F. Mollet, 2007/07/15
- Re: drawnow terminal type, Paul Kienzle, 2007/07/15
- Re: drawnow terminal type, Henry F. Mollet, 2007/07/16
- Re: drawnow terminal type, Paul Kienzle, 2007/07/16
- Re: drawnow terminal type, Owen Densmore, 2007/07/16