[Changeset] Add data sources and line series

David Bateman David.Bateman at motorola.com
Thu Aug 28 10:59:57 CDT 2008


The attached changeset adds data sources and the line series objects. 
Basically a line series wraps the underlying line object with exactly 
the same data available from the hggroup as the line object itself. So 
its use is not immediately obvious. However when combined with 
datasources it makes sense. Consider the code

           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

The y variable is linked to the plot and the plot is updated every time 
the refreshdata function is called. This will be useful to implement the 
"linkdata" function as well, though to do that needs some thought on 
where/when the drawnow/refresh should be called to update the figures, 
so I haven't done that yet. Perhaps the linking should be the 
responsibility of the backend in any case.

I've also included a partially working version of the linkprop function. 
It is partially working in that the linking is done correctly, but 
linkprop is supposed to return an object that when it is destroyed 
removes the link. This is related to the OnCleanUp function and so can't 
be implemented without similar functionality in Octave.

Finally this patch exposes the zlim issue mentioned in by previous 
e-mail. The only group object still to implement are contour, errorbar, 
surface and scatter groups. I'll do this soon.

Regards
David


-- 
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: patch8479
Url: https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080828/cb9dd032/attachment-0001.ksh 


More information about the Octave-maintainers mailing list