diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-01 23:23:06 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-01 23:23:06 -0500 |
commit | 5a3818857cf8b9ce7aa9ca66fef40e5cfa45f0ee (patch) | |
tree | 5847bf8c727ec9ff17fbde084f4fa6f628ecad55 /data/trace.py | |
parent | 9f1c2db9d296dc17f86e1f22634a14063b1d0a72 (diff) | |
download | qolab-5a3818857cf8b9ce7aa9ca66fef40e5cfa45f0ee.tar.gz qolab-5a3818857cf8b9ce7aa9ca66fef40e5cfa45f0ee.zip |
redo DataTrace naming
Diffstat (limited to 'data/trace.py')
-rw-r--r-- | data/trace.py | 16 |
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() + |