aboutsummaryrefslogtreecommitdiff
path: root/datatrace.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-01 10:23:39 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-01 10:23:39 -0500
commit62e8e882ba3ab5710d6ebd1bb927a585e7fe1583 (patch)
tree49438523f6008f56ba95cd7f5d81334b0b2f06e5 /datatrace.py
parentc1eeeb54c4b171bef50ebc0d946c618ef6f048a3 (diff)
downloadqolab-62e8e882ba3ab5710d6ebd1bb927a585e7fe1583.tar.gz
qolab-62e8e882ba3ab5710d6ebd1bb927a585e7fe1583.zip
split scope to several files
Diffstat (limited to 'datatrace.py')
-rw-r--r--datatrace.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/datatrace.py b/datatrace.py
new file mode 100644
index 0000000..7398695
--- /dev/null
+++ b/datatrace.py
@@ -0,0 +1,16 @@
+
+class DataTrace:
+ 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()
+