matplotlib error when running plotting in multiprocess
问题 I am using python's Multiprocess.Pool to plot some data using multiple processes as follows: class plotDriver: def plot(self, parameterList): numberOfWorkers = len(parameterList) pool = Pool(numberOfWorkers) pool.map(plotWorkerFunction, parameterList) pool.close() pool.join() this is a simplified version of my class, the driver also contains other stuffs I choose to omit. The plotWorkderFunction is a single threaded function, which imports matplotlib and does all the plotting and setting