aboutsummaryrefslogtreecommitdiff
path: root/qolab/data/trace.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-03 15:33:21 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-03 15:33:21 -0500
commit0998b59010254913d73cefeb8c5a4467a0e96170 (patch)
tree289eadb21d3fe46a6d607027aa51a6aa693613fd /qolab/data/trace.py
parent8cff383e7eeb015400386c54e8397acfa4a42fbe (diff)
downloadpyExpControl-0998b59010254913d73cefeb8c5a4467a0e96170.tar.gz
pyExpControl-0998b59010254913d73cefeb8c5a4467a0e96170.zip
added function for trace manipulation
Diffstat (limited to 'qolab/data/trace.py')
-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)