|
From: Joachim D. <dah...@gm...> - 2006-11-21 18:18:05
|
On 11/21/06, Andrew Straw <str...@as...> wrote: > > Joachim Dahl wrote: > > Dear developers, > > > > I am a happy user of Matplotlib, which is a wonderful library - thank > > you! > > > > Would it possible to support the SciPy Array interface in more places > > to make > > Matplotlib less dependent on Numpy/numarray? > I guess you mean numpy where you say scipy and Numeric where you say > numpy? Probably - I wouldn't be the first to get the names wrong... ;) In that case, the answer is yes: > > numpy.asarray( you_array_interface_supporting_object_here ) > > I know you can convert arrays, but it would nice not to have to. E.g., this works: imshow(matrix([[1.0,2.0],[3.0,4.0]]), this doesn't: matshow(matrix([[1.0,2.0],[3.0,4.0]]) but this does matshow(pylab.array(matrix([[1.0,2.0],[3.0,4.0]]) |