1 #!/usr/bin/env python
\r
6 Plot class for Hooke.
\r
8 Copyright 2010 by Dr. Rolf Schmidt (Concordia University, Canada)
\r
10 This program is released under the GNU General Public License version 2.
\r
13 class Invert(object):
\r
23 self.corrected_curves = []
\r
25 self.invert = Invert()
\r
26 self.raw_curves = []
\r
30 def normalize(self):
\r
32 Trims the vector lengths as to be equal in a plot.
\r
35 for curve in self.curves:
\r
36 lengths.append(len(curve.x))
\r
37 lengths.append(len(curve.y))
\r
38 if min(lengths) != max(lengths):
\r
39 curve.x = curve.x[0:min(lengths)]
\r
40 curve.y = curve.y[0:min(lengths)]
\r