From a2c90126d7268b1441b9168e77080a9abfb097b2 Mon Sep 17 00:00:00 2001
From: wonjunl2 <wonjunl2@illinois.edu>
Date: Thu, 9 Dec 2021 23:30:26 -0600
Subject: [PATCH] Upload New File

---
 Code/utilities.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 Code/utilities.py

diff --git a/Code/utilities.py b/Code/utilities.py
new file mode 100644
index 00000000..6bb32e63
--- /dev/null
+++ b/Code/utilities.py
@@ -0,0 +1,12 @@
+def animate_voltage(i):
+    t_arr = data[:, 0]
+    v_arr = data[:, 1]
+    a.clear()
+    a.plot(t_arr, v_arr)
+
+
+def animate_current():
+    t_arr = data[:, 0]
+    i_arr = data[:, 2]
+    a.clear()
+    a.plot()
-- 
GitLab