You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(15) |
Sep
(21) |
Oct
(15) |
Nov
|
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(7) |
Feb
(6) |
Mar
(2) |
Apr
(5) |
May
(6) |
Jun
(3) |
Jul
(4) |
Aug
(4) |
Sep
(3) |
Oct
(14) |
Nov
(16) |
Dec
(10) |
2004 |
Jan
(5) |
Feb
(10) |
Mar
(4) |
Apr
(8) |
May
(1) |
Jun
(5) |
Jul
(5) |
Aug
(4) |
Sep
(10) |
Oct
(3) |
Nov
(4) |
Dec
|
2005 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(15) |
May
(12) |
Jun
(1) |
Jul
(4) |
Aug
(3) |
Sep
(6) |
Oct
(7) |
Nov
(21) |
Dec
(11) |
2006 |
Jan
(16) |
Feb
(12) |
Mar
(4) |
Apr
(6) |
May
(5) |
Jun
(9) |
Jul
|
Aug
(5) |
Sep
(1) |
Oct
(10) |
Nov
(4) |
Dec
(3) |
2007 |
Jan
(6) |
Feb
(4) |
Mar
(6) |
Apr
(11) |
May
(1) |
Jun
(21) |
Jul
|
Aug
(6) |
Sep
(2) |
Oct
(4) |
Nov
|
Dec
|
2008 |
Jan
(14) |
Feb
(1) |
Mar
(5) |
Apr
(22) |
May
(4) |
Jun
(1) |
Jul
(7) |
Aug
(5) |
Sep
(7) |
Oct
(3) |
Nov
|
Dec
(1) |
2009 |
Jan
(14) |
Feb
(1) |
Mar
(9) |
Apr
(5) |
May
(6) |
Jun
(7) |
Jul
(8) |
Aug
(3) |
Sep
|
Oct
|
Nov
(2) |
Dec
(4) |
2010 |
Jan
(2) |
Feb
|
Mar
(6) |
Apr
(6) |
May
(34) |
Jun
|
Jul
(8) |
Aug
(3) |
Sep
|
Oct
(5) |
Nov
(3) |
Dec
(1) |
2011 |
Jan
|
Feb
(4) |
Mar
(3) |
Apr
|
May
|
Jun
(5) |
Jul
(9) |
Aug
(5) |
Sep
(9) |
Oct
(3) |
Nov
(10) |
Dec
(1) |
2012 |
Jan
(1) |
Feb
(3) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(5) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(3) |
Nov
(2) |
Dec
(9) |
2014 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(3) |
2016 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
(1) |
18
(1) |
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
31
|
|
|
|
|
|
From: Leonardo M. <lm...@ud...> - 2003-03-18 15:26:52
|
Dear Hendrik Thanks a lot for your message. What version of gnuplot are you running?. I suspect 1.6 This problem with temporary files was fixed by Michael a while ago in CVS (at least for UNIX), but I think there was no release after that. He fixed it by using FIFOs, please do a CVS checkout and see: http://sourceforge.net/cvs/?group_id=17434 (or just browse the web-cvs interface) Michael: how about a new release ? Best, -- Leo On Mon, 17 Mar 2003, Hendrik Muhs wrote: > Hi, > > the problem is described in the FAQ of the gnuplot-package. > > (You will get the same problem if you use Gnuplot in function which returns > before gnuplot is finished, for example: > > def makeimage(data, file): > g=Gnuplot.Gnuplot() > g('set term png') > g('set output \'' + file+ '\'') > g.plot(data) > return > > you will get something like this: > > gnuplot> plot '/tmp/@24463.2' > ^ > can't read data file "/tmp/@24463.2" > line 0: (No such file or directory) > ) > > A possible fix would be to use popen2(available on unix and windows) instead > of os.popen and to define __del__(self) to savely shutdown the gnuplot > process. > > the last part of my gp_unix.py looks like this: > > > #from os import popen > from popen2 import Popen3 > > def test_persist(): > """Determine whether gnuplot recognizes the option '-persist'. > > If the configuration variable 'recognizes_persist' is set (i.e., > to something other than 'None'), return that value. Otherwise, > try to determine whether the installed version of gnuplot > recognizes the -persist option. (If it doesn't, it should emit an > error message with '-persist' in the first line.) Then set > 'recognizes_persist' accordingly for future reference. > > """ > > if GnuplotOpts.recognizes_persist is None: > import string > g = Popen3('echo | %s -persist 2>&1' % GnuplotOpts.gnuplot_command, > 'r') > response = g.readlines() > g.close() > GnuplotOpts.recognizes_persist = ( > (not response) or (string.find(response[0], '-persist') == -1)) > return GnuplotOpts.recognizes_persist > > > class GnuplotProcess: > """Unsophisticated interface to a running gnuplot program. > > This represents a running gnuplot program and the means to > communicate with it at a primitive level (i.e., pass it commands > or data). When the object is destroyed, the gnuplot program exits > (unless the 'persist' option was set). The communication is > one-way; gnuplot's text output just goes to stdout with no attempt > to check it for error messages. > > Members: > > 'gnuplot' -- the pipe to the gnuplot command. > > Methods: > > '__init__' -- start up the program. > > '__call__' -- pass an arbitrary string to the gnuplot program, > followed by a newline. > > 'write' -- pass an arbitrary string to the gnuplot program. > > 'flush' -- cause pending output to be written immediately. > > """ > > def __init__(self, persist=None): > """Start a gnuplot process. > > Create a 'GnuplotProcess' object. This starts a gnuplot > program and prepares to write commands to it. > > Keyword arguments: > > 'persist=1' -- start gnuplot with the '-persist' option, > (which leaves the plot window on the screen even after > the gnuplot program ends, and creates a new plot window > each time the terminal type is set to 'x11'). This > option is not available on older versions of gnuplot. > > """ > > if persist is None: > persist = GnuplotOpts.prefer_persist > if persist: > if not test_persist(): > raise ('-persist does not seem to be supported ' > 'by your version of gnuplot!') > self.gnuplot = Popen3('%s -persist' % GnuplotOpts.gnuplot_command, > 'w') > else: > self.gnuplot = Popen3(GnuplotOpts.gnuplot_command, 'w') > > > # forward write and flush methods: > self.write = self.gnuplot.tochild.write > self.flush = self.gnuplot.tochild.flush > > def __call__(self, s): > """Send a command string to gnuplot, followed by newline.""" > > self.write(s + '\n') > self.flush() > def __del__(self): > self.write('exit\n') > self.flush() > self.gnuplot.wait() > > Regards, > > Hendrik Muhs > P.S. for answers: Please CC me, because I am not subscribed to this list > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > |
From: Hendrik M. <Hen...@we...> - 2003-03-17 11:05:27
|
Hi, the problem is described in the FAQ of the gnuplot-package. (You will get the same problem if you use Gnuplot in function which returns before gnuplot is finished, for example: def makeimage(data, file): g=Gnuplot.Gnuplot() g('set term png') g('set output \'' + file+ '\'') g.plot(data) return you will get something like this: gnuplot> plot '/tmp/@24463.2' ^ can't read data file "/tmp/@24463.2" line 0: (No such file or directory) ) A possible fix would be to use popen2(available on unix and windows) instead of os.popen and to define __del__(self) to savely shutdown the gnuplot process. the last part of my gp_unix.py looks like this: #from os import popen from popen2 import Popen3 def test_persist(): """Determine whether gnuplot recognizes the option '-persist'. If the configuration variable 'recognizes_persist' is set (i.e., to something other than 'None'), return that value. Otherwise, try to determine whether the installed version of gnuplot recognizes the -persist option. (If it doesn't, it should emit an error message with '-persist' in the first line.) Then set 'recognizes_persist' accordingly for future reference. """ if GnuplotOpts.recognizes_persist is None: import string g = Popen3('echo | %s -persist 2>&1' % GnuplotOpts.gnuplot_command, 'r') response = g.readlines() g.close() GnuplotOpts.recognizes_persist = ( (not response) or (string.find(response[0], '-persist') == -1)) return GnuplotOpts.recognizes_persist class GnuplotProcess: """Unsophisticated interface to a running gnuplot program. This represents a running gnuplot program and the means to communicate with it at a primitive level (i.e., pass it commands or data). When the object is destroyed, the gnuplot program exits (unless the 'persist' option was set). The communication is one-way; gnuplot's text output just goes to stdout with no attempt to check it for error messages. Members: 'gnuplot' -- the pipe to the gnuplot command. Methods: '__init__' -- start up the program. '__call__' -- pass an arbitrary string to the gnuplot program, followed by a newline. 'write' -- pass an arbitrary string to the gnuplot program. 'flush' -- cause pending output to be written immediately. """ def __init__(self, persist=None): """Start a gnuplot process. Create a 'GnuplotProcess' object. This starts a gnuplot program and prepares to write commands to it. Keyword arguments: 'persist=1' -- start gnuplot with the '-persist' option, (which leaves the plot window on the screen even after the gnuplot program ends, and creates a new plot window each time the terminal type is set to 'x11'). This option is not available on older versions of gnuplot. """ if persist is None: persist = GnuplotOpts.prefer_persist if persist: if not test_persist(): raise ('-persist does not seem to be supported ' 'by your version of gnuplot!') self.gnuplot = Popen3('%s -persist' % GnuplotOpts.gnuplot_command, 'w') else: self.gnuplot = Popen3(GnuplotOpts.gnuplot_command, 'w') # forward write and flush methods: self.write = self.gnuplot.tochild.write self.flush = self.gnuplot.tochild.flush def __call__(self, s): """Send a command string to gnuplot, followed by newline.""" self.write(s + '\n') self.flush() def __del__(self): self.write('exit\n') self.flush() self.gnuplot.wait() Regards, Hendrik Muhs P.S. for answers: Please CC me, because I am not subscribed to this list |