From: Michael H. <mh...@al...> - 2011-08-23 07:56:13
|
On 08/23/2011 04:33 AM, Sears Merritt wrote: > I am trying plot many datasets (1500) in a single plot and am running > into an I/O error due to too many open files. > > The code is as follows: > > for row in dataSet: > plots.append(Gnuplot.PlotItems.Data(eval(row[2]))) > g.plot(*plots) > g.hardcopy(filename='output.ps') > > Has anyone found a workaround for this issue? You might want to put multiple datasets in a single file (e.g., separated by blank lines). This means that they will all be plotted in the same style, but with 1500 datasets I doubt that the datasets are very distinct anyway. If you insist on having so many distinct datasets, they you have to increase the number of file descriptors allowed to your process. See, for example, [1] or [2]. Michael [1] http://stackoverflow.com/questions/880557/linux-socket-accept-too-many-open-files [2] http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/ -- Michael Haggerty mh...@al... http://softwareswirl.blogspot.com/ |