From 6744e717c335edc093fb94827cc9a7fe97d08b19 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Sat, 15 Apr 2023 22:36:20 +0200
Subject: [PATCH] Adds a plot

---
 test_measure_with_ohmpi_card_3_15.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test_measure_with_ohmpi_card_3_15.py b/test_measure_with_ohmpi_card_3_15.py
index 8a36a982..925f91d0 100644
--- a/test_measure_with_ohmpi_card_3_15.py
+++ b/test_measure_with_ohmpi_card_3_15.py
@@ -9,7 +9,7 @@ k._vab_pulse(vab=12, length=1., sampling_rate=10., polarity=1)
 r = k.readings[:,2]/k.readings[:,1]
 print(f'Mean resistance: {np.mean(r):.3f} Ohms, Dev. {100*np.std(r)/np.mean(r):.1f} %')
 fig, ax = plt.subplots()
-ax.plot(r[:,0], r[:, 1], '-r', label='current')
+ax.plot(k.readings[:,0], k.readings[:, 1], '-r', label='current')
 ax2 = ax.twinx()
-ax.plot(r[:,0], r[:, 2], '-b', label='voltage')
+ax.plot(k.readings[:,0], k.readings[:, 2], '-b', label='voltage')
 change_config('config_default.py', verbose=False)
-- 
GitLab