From: <kk...@ma...> - 2008-01-31 18:44:14
|
When I try to open more than 6 gnuplot windows at the same time I get following issues: - new windows aren't opened - gnuplot 'save' doesn't work I suppose that problem is in gnuplot perfomance. I mean that gnuplot get new request before old request is not yet proccessed. Or maybe it is SMP issue cause I have Intel Core Duo. Anyway, I've found some workaround: I've modified __call__ method with short delay. I know it's ugly but it works def __call__(self, s): """Send a command string to gnuplot. Send the string s as a command to gnuplot, followed by a newline. All communication with the gnuplot process (except for inline data) is through this method. """ self.gnuplot(s) if self.debug: # also echo to stderr for user to see: sys.stderr.write('gnuplot> %s\n' % (s,)) time.sleep(0.1); |