aboutsummaryrefslogtreecommitdiff
path: root/qolab/data
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/data')
-rw-r--r--qolab/data/trace.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py
index adde8a8..19eafec 100644
--- a/qolab/data/trace.py
+++ b/qolab/data/trace.py
@@ -43,4 +43,15 @@ class TraceSetSameX:
plt.xlabel(self.x.label)
plt.legend()
+ def items(self):
+ return (self.traces.items())
+
+ def keys(self):
+ return (self.traces.keys())
+
+ def getTrace(self, name):
+ tr = TraceXY('name')
+ tr.x = self.x
+ tr.y = self.traces[name]
+ return (tr)