4 import matplotlib.pyplot
as plt
10 if strline.find(name) < 0:
11 raise Exception(
"File format not matching the parser expectation", name)
13 return strline.replace(name,
"", 1)
18 return np.array([float(ss[0]), float(ss[1]), float(ss[2])])
30 poses.append(f.readline())
31 self.
poses = np.loadtxt(poses, delimiter=
" ")
32 self.
cmap = plt.get_cmap(
"spectral")
40 f = open(filename,
"r") 48 self.prims.append(
MPrim(f))
54 ax = fig.add_subplot(111)
55 ax.set_xticks(np.arange(-1, 1, self.
resolution))
56 ax.set_yticks(np.arange(-1, 1, self.
resolution))
57 for prim
in self.
prims:
def get_value(strline, name)
def __init__(self, filename)
def plot(self, nr_angles)