rf433rcv: added plotting of data. last ',' has to be removed by hand (se sample data)
[svn42.git] / rf433rcv / plot.py
diff --git a/rf433rcv/plot.py b/rf433rcv/plot.py
new file mode 100755 (executable)
index 0000000..350c40a
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/python
+
+import fileinput
+import numpy
+import pylab
+
+for line in fileinput.input():
+  data = numpy.array(line.split(","))
+  pylab.plot(range(len(data)),data)
+  pylab.show()
+