From: Ben W. <bw...@ma...> - 2011-03-01 01:47:06
|
Hi I'm not famliar with the inner workings of GnuPlot.py and am very confused by an error I get. Anyone have an suggestions how I could avoid it? Details below. Here's some sudo-code indicating how I'm using GnuPlot.py: g = GnuPlot.Gnuplot() domain = calculate_function_domain() time = 0 C = 1000000 #just a very large number t = 0 while t<C: data = function(domain, t) p = Gnuplot.Data(domain,data) g.plot(p) time.sleep(0.01) t+=1 #just an example num This is the traceback for the error: Traceback (most recent call last): File "main.py", line 52, in <module> problem.run(tstart, tstop) File "/mnt/maybe/home/bwhale/Documents/Academic/Research/Current work/Numerical/git/gravity/Code/EvolutionSBP/Main_program/code/ibvp.py", line 88, in run action(self.iteration, u) File "/mnt/maybe/home/bwhale/Documents/Academic/Research/Current work/Numerical/git/gravity/Code/EvolutionSBP/Main_program/code/actions.py", line 11, in __call__ self._doit(it, u) File "/mnt/maybe/home/bwhale/Documents/Academic/Research/Current work/Numerical/git/gravity/Code/EvolutionSBP/Main_program/code/actions.py", line 65, in _doit g.plot(*graphs) File "/usr/lib/python2.7/site-packages/Gnuplot/_Gnuplot.py", line 285, in plot self.refresh() File "/usr/lib/python2.7/site-packages/Gnuplot/_Gnuplot.py", line 225, in refresh plotcmds.append(item.command()) File "/usr/lib/python2.7/site-packages/Gnuplot/PlotItems.py", line 192, in command self.get_base_command_string(), File "/usr/lib/python2.7/site-packages/Gnuplot/PlotItems.py", line 485, in get_base_command_string fifo = _FIFOWriter(self.content, self.mode) File "/usr/lib/python2.7/site-packages/Gnuplot/PlotItems.py", line 443, in __init__ self.start() File "/usr/lib64/python2.7/threading.py", line 473, in start _start_new_thread(self.__bootstrap, ()) thread.error: can't start new thread |