|
From: Robert K. <rk...@uc...> - 2005-03-28 17:50:15
|
Charles Moad wrote: > In learning matplotlib's backend API I played around in starting a > Quartz image backend. FWIW I am posting this if anyone wants to have a > look. I made a quick page on my wiki: > > http://euclid.uits.iupui.edu/wiki/index.php/Matplotlib The last time I looked at the Apple-provided wrappers, I found them to be inadequate for drawing stuff. If I remember correctly, some of the arguments require arrays of <Foo>, but they never wrote the typemaps to convert Python lists of <Foo> to the appropriate <FooPtr>. Worse, there's no source or documentation; you have to fly blind with the SWIGged API. So I wrote ABCGI (A Better CoreGraphics Interface; I'm uncreative). It's part of Enthought's Kiva, but it could be trivially ripped out to stand alone. http://svn.enthought.com/svn/enthought/branches/converge/kiva/mac/ It's more complete than the Apple wrappers, and plays nicely with Numeric. It would need some numerixifying to play nicely with matplotlib, probably. It plays nicely with PyObjC and PIL, too. -- Robert Kern rk...@uc... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter |