diff options
Diffstat (limited to 'datatrace.py')
-rw-r--r-- | datatrace.py | 16 |
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() + |