aboutsummaryrefslogtreecommitdiffstats
path: root/plot.py
diff options
context:
space:
mode:
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()
+
+