pyglet backend (experimental)

Hello,

I'm working on a pyglet backend for matplotlib and I have a few
questions. Currently the renderer is a subclass of the Agg renderer and
it seems to be working properly. I intended only to re-implement the
'draw_image' method to benefit from fast image display using
OpenGL/texture/shader. My first test was then to have a dummy draw_image
image and I expected command like imshow to not display anything at all
but is it not the case. Am I wrong in my assumption regarding the
purpose of the 'draw_image' method ?

Experimental code is located at:

backend:
http://www.loria.fr/~rougier/tmp/backend_pygletagg.py
http://www.loria.fr/~rougier/tmp/backend_pyglet.py

test:
http://www.loria.fr/~rougier/tmp/dynamic_image_pyglet.py
http://www.loria.fr/~rougier/tmp/test_backend_pyglet.py

Nicolas