import matplotlib.pyplot as plt a = random(100)*10 b = range(100) fig = plt.figure(1) ax = fig.add_subplot(111, axisbg='black') ax.scatter(a,b) fig.canvas.draw()