|
From: Glen W. M. <Gle...@sw...> - 2007-03-02 14:46:29
|
On Fri, Mar 02, 2007 at 08:44:02AM -0600, Glen W. Mabey wrote: > One approach that I've used recently is to simply provide functionality > for the [] operator (done by implementing the __getslice__ member > function) that accesses the data according to standard slicing rules. > Then, you can use plot() directly. P.S. You may also need to implement functions like __len__; if these concepts are well-defined for your class, then it should be a very straightforward process. Glen |