Revision: 7095 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7095&view=rev Author: ryanmay Date: 2009-05-07 18:14:01 +0000 (Thu, 07 May 2009)
Log Message: ----------- Clean up multiprocess a little. Remove unused import, ensure Gtk backend is used, and replace pylab with pyplot. Modified Paths: -------------- trunk/matplotlib/examples/misc/multiprocess.py Modified: trunk/matplotlib/examples/misc/multiprocess.py =================================================================== --- trunk/matplotlib/examples/misc/multiprocess.py 2009-05-07 15:10:42 UTC (rev 7094) +++ trunk/matplotlib/examples/misc/multiprocess.py 2009-05-07 18:14:01 UTC (rev 7095) @@ -8,9 +8,11 @@ from multiprocessing import Process, Pipe except ImportError: from processing import Process, Pipe -from Queue import Empty import numpy as np -import pylab + +import matplotlib +matplotlib.use('GtkAgg') +import matplotlib.pyplot as plt import gobject class ProcessPlotter(object): @@ -20,7 +22,7 @@ self.y = [] def terminate(self): - pylab.close('all') + plt.close('all') def poll_draw(self): @@ -49,13 +51,13 @@ print 'starting plotter...' self.pipe = pipe - self.fig = pylab.figure() + self.fig = plt.figure() self.ax = self.fig.add_subplot(111) self.gid = gobject.timeout_add(1000, self.poll_draw()) print '...done' - pylab.show() + plt.show() class NBPlot(object): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins