From 095fb50a7b09b29660ab9803bda5a26219bbd1e4 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Wed, 14 Nov 2018 12:00:41 -0600 Subject: 2018-11-14 12:00 --- data/2018-11-14/load.png | Bin 0 -> 97797 bytes data/2018-11-14/load.txt | 25 +++++++++++++++++++++++++ data/2018-11-14/workup.py | 25 +++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 data/2018-11-14/load.png create mode 100644 data/2018-11-14/load.txt create mode 100644 data/2018-11-14/workup.py (limited to 'data/2018-11-14') diff --git a/data/2018-11-14/load.png b/data/2018-11-14/load.png new file mode 100644 index 0000000..9009409 Binary files /dev/null and b/data/2018-11-14/load.png differ diff --git a/data/2018-11-14/load.txt b/data/2018-11-14/load.txt new file mode 100644 index 0000000..41344c8 --- /dev/null +++ b/data/2018-11-14/load.txt @@ -0,0 +1,25 @@ +# load (ohms),R (mV),L (mV) +15,17.8,17.3 +22,24.7,23.9 +33,35.4,34.2 +47,46.2,44.8 +68,70,4.68.4 +100,99.8,97.2 +150,164.4,160.3 +220,224.8,219.4 +330,339.2,331.4 +470,465,455 +680,708,693 +1000,1230,1204 +1500,1522,1489 +2200,2267,2218 +3300,3258,3183 +4700,4770,4670 +6800,6460,6330 +10000,9950,9650 +15000,13440,13440 +22000,13470,13480 +33000,13510,13520 +47000,13540,13550 +68000,13560,13570 +100000,13580,13580 diff --git a/data/2018-11-14/workup.py b/data/2018-11-14/workup.py new file mode 100644 index 0000000..9103bdf --- /dev/null +++ b/data/2018-11-14/workup.py @@ -0,0 +1,25 @@ +import pathlib +import numpy as np +import matplotlib.pyplot as plt + +__here__ = pathlib.Path(__file__).parent + +xi, r, l = np.genfromtxt('load.txt', delimiter=',').T + +plt.plot(xi, r) +plt.scatter(xi, r, label='right') +plt.plot(xi, l) +plt.scatter(xi, l, label='left') + +plt.xlabel('load resistance (ohms)') +plt.ylabel('applied voltage (mV)') +plt.grid() +plt.plot(xi, xi, c='k', alpha=0.5, lw=0.5) + +plt.ylim(0, 20000) +plt.xlim(0, 100000) + +plt.legend() + +plt.savefig('load.png', dpi=300, transparent=True) +plt.close() -- cgit v1.2.3