[changeset] - improve clf() compatibility
David Bateman
David.Bateman at motorola.com
Wed Oct 22 07:15:31 CDT 2008
David Bateman wrote:
> John W. Eaton wrote:
>> * The refreshdata demo does not seem to be working correctly for me.
>> I'm seeing
>>
>> octave:1> demo refreshdata
>> refreshdata example 1:
>> x = 0:0.1:10;
>> y = sin (x);
>> plot (x, y, "ydatasource", "y");
>> for i = 1 : 100
>> pause(0.1)
>> y = sin (x + 0.1 * i);
>> refreshdata();
>> endfor
>>
>> refreshdata example 1: failed
>> `y' undefined near line 0 column 1octave:2>
>
>
> Strange, run from the command line as
>
> x=0:0.1:10;y=sin(x); plot(x,y,"ydatasource","y"); for i = 1:100,
> pause(0.1); y = sin(x + 0.1*x); refreshdata(); endfor
>
> it works fine.. Not sure yet what is going on here.
>
> D.
Ok, this is in fact obvious.. refreshdata by default evaluates its
arguments in the "base" workspace and in a demo script it needs to do it
in the "caller" workspace.. Patch attached and pushed to Savannah..
D.
--
David Bateman David.Bateman at motorola.com
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch8746
Url: https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20081022/83131ead/attachment.ksh
More information about the Octave-maintainers
mailing list