From: Chip W. <cw...@ly...> - 2008-02-01 03:24:08
|
I ran into a similar issue about a year ago using gnuplot.py on cygwin/windows (with a Intel Core Duo). I remember solving it in a similar manner with the delay and then using something slightly different like waiting for the call to return before moving on. -chip -- On Thursday, January 31, 2008 3:43 PM -- kk...@ma... wrote: > 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); > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Defy all challenges. > Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users |