aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-01 23:23:06 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-01 23:23:06 -0500
commit5a3818857cf8b9ce7aa9ca66fef40e5cfa45f0ee (patch)
tree5847bf8c727ec9ff17fbde084f4fa6f628ecad55 /data
parent9f1c2db9d296dc17f86e1f22634a14063b1d0a72 (diff)
downloadqolab-5a3818857cf8b9ce7aa9ca66fef40e5cfa45f0ee.tar.gz
qolab-5a3818857cf8b9ce7aa9ca66fef40e5cfa45f0ee.zip
redo DataTrace naming
Diffstat (limited to 'data')
-rw-r--r--data/trace.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/trace.py b/data/trace.py
new file mode 100644
index 0000000..9b14264
--- /dev/null
+++ b/data/trace.py
@@ -0,0 +1,16 @@
+
+class Trace:
+ def __init__(self, descrStr):
+ self.descr = descrStr
+ self.x = None
+ self.xlabel = None
+ self.xunit = None
+ self.y = None
+ self.ylabel = None
+ self.yunit = None
+
+ def plot(self):
+ import matplotlib.pyplot as plt
+ plt.plot(self.x, self.y, label=self.descr)
+ plt.legend()
+