Out of the box matplotlib works great with Numeric and numarray data types.
However, I have my own custom class which contains data members, methods and
an array of data (underlying C array). Is there a way to expose the C array
data to the plot() routines? For example I would like to be able to
On 3/2/07, John Hunter [EMAIL PROTECTED] wrote:
John said:
...here is the minimal interface that
appears to work
class C(object):
def __init__(self):
self._data = (1,2,3,4,5)
def __getitem__(self, i):
return self._data[i]
def __len__(self):
return