aboutsummaryrefslogtreecommitdiffstats
path: root/plot.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-08-06 21:27:42 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-08-06 21:27:42 +0200
commit50295706666b574400945506b6e19f44f7e9d4b9 (patch)
treeadcc8faa77286c57807c1766c77bce578557d5f1 /plot.py
parentb8a2469cc5a933196a40a1d129b04a24ef748f4b (diff)
downloadODR-StaticPrecorrection-50295706666b574400945506b6e19f44f7e9d4b9.tar.gz
ODR-StaticPrecorrection-50295706666b574400945506b6e19f44f7e9d4b9.tar.bz2
ODR-StaticPrecorrection-50295706666b574400945506b6e19f44f7e9d4b9.zip
Add option num-meas-skip
Diffstat (limited to 'plot.py')
-rwxr-xr-xplot.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/plot.py b/plot.py
index a4faf89..8e1411a 100755
--- a/plot.py
+++ b/plot.py
@@ -13,12 +13,25 @@ import matplotlib.pyplot as pp
measurements = np.loadtxt("measurements.csv", delimiter=",")
+mag_gen = measurements[..., 1]
+mag_feedback = measurements[..., 2]
+phase_diff = measurements[..., 3]
+
+pp.figure()
pp.subplot(311)
-pp.plot(measurements[..., 1])
+pp.plot(mag_gen)
pp.subplot(312)
-pp.plot(measurements[..., 2])
+pp.plot(mag_feedback)
pp.subplot(313)
-pp.plot(measurements[..., 3])
+pp.plot(phase_diff)
+
+pp.figure()
+pp.scatter(mag_gen, mag_feedback)
+
+pp.figure()
+mag_gen_norm = mag_gen / mag_gen.max()
+mag_feedback_norm = mag_feedback / mag_feedback.max()
+pp.plot(mag_gen_norm - mag_feedback_norm)
pp.show()