From 0998b59010254913d73cefeb8c5a4467a0e96170 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Fri, 3 Dec 2021 15:33:21 -0500 Subject: added function for trace manipulation --- qolab/data/trace.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'qolab/data/trace.py') 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) -- cgit v1.2.3