# import this into ipython -pylab # or run from command line: ipython -pylab -classic -logfile ipy.txt # or just open it into idle and run it :) # # ipython will draw the result of each call to pyplot.xxx # regular python interpreter will block import numpy r = numpy.random.rand(30,30) # random values 0. to 1. import matplotlib.pyplot as g g.contour(r) # contour line plot of random data fig2 = g.figure() # start new window #fig2.canvas.manager.window.Move((648,20)) g.contourf(r) # filled contour plot of random data g.show()