answered 12 years ago
I wonder if you could use matplotlib's imshow to do this in an easier way: http://matplotlib.org/users/image_tutorial.html