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:
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.
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.
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter