aboutsummaryrefslogtreecommitdiffstats
path: root/plot.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-08-06 16:54:01 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-08-06 16:54:01 +0200
commit3ccac8f7c14fc92fba5de7e4e532c892834b35b9 (patch)
treea1511e1b3a43793053689ce534f5cb8a70aba7bc /plot.py
downloadODR-StaticPrecorrection-3ccac8f7c14fc92fba5de7e4e532c892834b35b9.tar.gz
ODR-StaticPrecorrection-3ccac8f7c14fc92fba5de7e4e532c892834b35b9.tar.bz2
ODR-StaticPrecorrection-3ccac8f7c14fc92fba5de7e4e532c892834b35b9.zip
Add first version of scripts
Diffstat (limited to 'plot.py')
-rwxr-xr-xplot.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/plot.py b/plot.py
new file mode 100755
index 0000000..a4faf89
--- /dev/null
+++ b/plot.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python2
+#
+# Plot the contents of the measurements.csv generated
+# by amplitude_ramp.py
+#
+# Copyright (C) 2016
+# Matthias P. Braendli, matthias.braendli@mpb.li
+# http://www.opendigitalradio.org
+# Licence: The MIT License, see LICENCE file
+
+import numpy as np
+import matplotlib.pyplot as pp
+
+measurements = np.loadtxt("measurements.csv", delimiter=",")
+
+pp.subplot(311)
+pp.plot(measurements[..., 1])
+pp.subplot(312)
+pp.plot(measurements[..., 2])
+pp.subplot(313)
+pp.plot(measurements[..., 3])
+
+pp.show()
+
+