This code may do what you want:
import numpy, glumpy
import OpenGL.GL as gl
fig = glumpy.figure( (512,512) )
Z = numpy.random.random((32,32)).astype(numpy.float32)
image = glumpy.image.Image(Z)
@fig.event
def on_draw():
fig.clear()
gl.glPushMatrix()
gl.glTranslate(fig.width/2.0, fig.height/2.0,0)
gl.glRotate(35,0,0,1)
image.draw( x=-fig.width/2, y=-fig.height/2, z=0,
width=fig.width, height=fig.height )
gl.glPopMatrix()
glumpy.show()
Nicolas
On Mar 1, 7:44 pm, Timothy Lillicrap <
timothy.lillic...@gmail.com>
wrote: