diff options
author | Blaise Thompson <blaise@untzag.com> | 2020-01-29 16:15:54 -0600 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2020-01-29 16:15:54 -0600 |
commit | 821d54537fef8f7496de7c83d79c1c655ce3a07b (patch) | |
tree | c864c24fffd9edcc652f145dbb75aafeb96f8f63 /data/2018-11-08 | |
parent | 30c90e7349294ab25481bf4996bca3b7374fb16f (diff) |
daughter
Diffstat (limited to 'data/2018-11-08')
-rw-r--r-- | data/2018-11-08/ohm.png | bin | 27829 -> 0 bytes | |||
-rw-r--r-- | data/2018-11-08/ohm.txt | 9 | ||||
-rw-r--r-- | data/2018-11-08/ohm_symlog.png | bin | 27330 -> 0 bytes | |||
-rw-r--r-- | data/2018-11-08/workup_ohm.py | 33 |
4 files changed, 0 insertions, 42 deletions
diff --git a/data/2018-11-08/ohm.png b/data/2018-11-08/ohm.png Binary files differdeleted file mode 100644 index 8142011..0000000 --- a/data/2018-11-08/ohm.png +++ /dev/null diff --git a/data/2018-11-08/ohm.txt b/data/2018-11-08/ohm.txt deleted file mode 100644 index 7d8a582..0000000 --- a/data/2018-11-08/ohm.txt +++ /dev/null @@ -1,9 +0,0 @@ -1 0.013 -2 0.023 -5 0.054 -10 0.102 -20 0.200 -50 0.497 -100 0.993 -200 1.985 -500 4.996 diff --git a/data/2018-11-08/ohm_symlog.png b/data/2018-11-08/ohm_symlog.png Binary files differdeleted file mode 100644 index 6847b86..0000000 --- a/data/2018-11-08/ohm_symlog.png +++ /dev/null diff --git a/data/2018-11-08/workup_ohm.py b/data/2018-11-08/workup_ohm.py deleted file mode 100644 index 95ebc42..0000000 --- a/data/2018-11-08/workup_ohm.py +++ /dev/null @@ -1,33 +0,0 @@ -import numpy as np -import matplotlib.pyplot as plt - -# get data -xi, yi = np.genfromtxt('ohm.txt').T - -# prepare figure -plt.figure() -ax = plt.gca() - -# raw -ax.plot(xi, yi) -ax.grid() -ax.set_xlim(0, 500) -ax.set_ylim(0, 5 * 1.1) -ax.set_xlabel('set point') -ax.set_ylabel('measured', color='C0') -ax.set_xscale('symlog') - -# diff -ax = ax.twinx() -error = yi - (xi*0.01) -error /= xi -error *= 100 # to percent -error = np.abs(error) # absolute value -print(error) -ax.plot(xi, error, c="C1") -ax.set_ylabel('percent error', color='C1') -ax.grid() -ax.set_ylim(0, 0.3 * 1.1) -ax.set_yticks(np.linspace(0, 0.3, 6)) - -plt.savefig('ohm_symlog.png') |