gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14202 - gauger


From: gnunet
Subject: [GNUnet-SVN] r14202 - gauger
Date: Tue, 18 Jan 2011 19:39:48 +0100

Author: bartpolot
Date: 2011-01-18 19:39:48 +0100 (Tue, 18 Jan 2011)
New Revision: 14202

Modified:
   gauger/gauger.py
Log:
Changed the way gnuplot works due to errors with gnunet.org's version of gnuplot

Modified: gauger/gauger.py
===================================================================
--- gauger/gauger.py    2011-01-18 16:29:43 UTC (rev 14201)
+++ gauger/gauger.py    2011-01-18 18:39:48 UTC (rev 14202)
@@ -27,7 +27,11 @@
 
 def updateplot(host, data):
   filename = host + '/' + data
-  os.system("gnuplot -e 'set terminal png; set output \"" + filename + 
".png\"; plot \"" + filename + "\" with line title \"" + host + ", " + data + 
"\" lw 3 lt rgb \"green\" '")
+  tmpconf = open("tmpgnuplotconfig", "w")
+  tmpconf.write("set terminal png; set output \"" + filename + ".png\"; plot 
\"" + filename + "\" with line title\
+ \"" + host + ", " + data + "\" lw 3 lt rgb \"green\"")
+  tmpconf.close()
+  os.system("gnuplot tmpgnuplotconfig")
   
 def gethostfromlogin(user, password):
   try:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]