[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW |
Date: |
Wed, 5 Aug 2009 09:00:10 +0900 (JST) |
Hello
Sorry for my giving error message.
--- Olli Saarela wrote:
> Hello,
>
> >> ! if (isempty (str))
> >> ! sleep(0.05);
> >> ! else
> >
> >I have tested on computer in my home (cpu Celerron M 1.3GHz)
> >Why 'else' is here?
> > With this 'else' plot was failled.
>
> When applying the patch, did you notice the removal of the "!" operator from
> "if (! isempty (str))"? For me the patch works, but if I remove the "else"
> then it fails.
>
> The "else" is there in order to preserve the original program logic. In both
> the original code
>
> if (! isempty (str))
> str = regexp (str, "OCTAVE:.*", "match");
>
> and in the patched code
>
> if (isempty (str))
> sleep(0.05);
> else
> str = regexp (str, "OCTAVE:.*", "match");
>
> the contents of the variable str are parsed with regexp() if str is not
> empty.
>
> If this doesn't solve the problem, the what is the error message you get
> when the plot fails?
>
> Best regards,
> Olli
>
The code
if (! isempty (str))
sleep(0.05);
else
str = regexp (str, "OCTAVE:.*", "match");
str = str{end}(8:end);
endif
gives
octave.exe:5>for i = 1:n*m
> x = rand (2,N);
> subplot (n,m,i);
> plot (x(1,:),x(2,:));
> end
error: subscript indices must be either positive integers or logicals.
warning: __gnuplot_get_var__: some elements in list of return values are
undefined
error: called from:
error:
C:\Programs\Octave\3.2.0_gcc-4.3.0\share\octave\3.2.0\m\plot\__go_draw_axes__.m
at line 39,
column 18
error: subscript indices must be either positive integers or logicals.
warning: __gnuplot_get_var__: some elements in list of return values are
undefined
error: called from:
error:
C:\Programs\Octave\3.2.0_gcc-4.3.0\share\octave\3.2.0\m\plot\__go_draw_axes__.m
at line 39,
column 18
error: subscript indices must be either positive integers or logicals.
warning: __gnuplot_get_var__: some elements in list of return values are
undefined
error: called from:
error:
C:\Programs\Octave\3.2.0_gcc-4.3.0\share\octave\3.2.0\m\plot\__go_draw_axes__.m
at line 39,
column 18
error: subscript indices must be either positive integers or logicals.
warning: __gnuplot_get_var__: some elements in list of return values are
undefined
error: called from:
error:
C:\Programs\Octave\3.2.0_gcc-4.3.0\share\octave\3.2.0\m\plot\__go_draw_axes__.m
at line 39,
column 18
octave.exe:6>toc
Elapsed time is 3.23438 seconds.
Regards
Tatsuro
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
- Re: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW, Tatsuro MATSUOKA, 2009/08/01
- Re: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW, Matthias Brennwald, 2009/08/03
- RE: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW, Tatsuro MATSUOKA, 2009/08/04
- RE: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW, Tatsuro MATSUOKA, 2009/08/05
- RE: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW, John W. Eaton, 2009/08/05
- RE: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW, Tatsuro MATSUOKA, 2009/08/05
- Re: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW, Jaroslav Hajek, 2009/08/06
- Re: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW, Tatsuro MATSUOKA, 2009/08/06
- Re: Plotting with 3.2.0 on Windows is SLOOOOOOWWWW, Jaroslav Hajek, 2009/08/07