[pypy-svn] r20409 - pypy/dist/pypy/doc/statistic

ericvrp at codespeak.net ericvrp at codespeak.net
Tue Nov 29 21:30:02 CET 2005


Author: ericvrp
Date: Tue Nov 29 21:30:00 2005
New Revision: 20409

Added:
   pypy/dist/pypy/doc/statistic/release_dates.csv
      - copied, changed from r20408, pypy/dist/pypy/doc/statistic/release_dates.txt
Removed:
   pypy/dist/pypy/doc/statistic/release_dates.txt
Modified:
   pypy/dist/pypy/doc/statistic/format.py
Log:
txt to png conversion


Modified: pypy/dist/pypy/doc/statistic/format.py
==============================================================================
--- pypy/dist/pypy/doc/statistic/format.py	(original)
+++ pypy/dist/pypy/doc/statistic/format.py	Tue Nov 29 21:30:00 2005
@@ -38,13 +38,20 @@
         result = parser.parse(s)
     return pylab.date2num(result)
 
-if __name__ == '__main__':
-    p = py.path.local("pypy-svn-post.txt")
+def txt2png(p):
+    print p
     title, axis, data = get_data(p)
-    print title
-    print axis
-    print data
+    #print title
+    #print axis
+    #print data
     line,  = pylab.plot_date(data[0], data[1])
     pylab.title(title)
-    pylab.show()
-    
+    pylab.savefig(p.purebasename + ".png")
+    #print
+ 
+def main():
+    for p in py.path.local().listdir("*.txt"):
+        txt2png(p)
+
+if __name__ == '__main__':
+    main()



More information about the Pypy-commit mailing list