GTK Console with inline figures

Hi all,

Based on the GTK console bundled with The Gimp I developed a pylab
console that display figures inline. I thought it might be of some
interest for some of you.

A screenshot is available at:

and the console code is at:

I added a 'replot()' command for re-plotting the last figure. Each time
a figure is replot, the previous one is replaced by a (static) image,
preventing any further change on it.