32 import matplotlib.pyplot
as plt
38 if strline.find(name) < 0:
39 raise Exception(
"File format not matching the parser expectation", name)
41 return strline.replace(name,
"", 1)
46 return np.array([float(ss[0]), float(ss[1]), float(ss[2])])
58 poses.append(f.readline())
59 self.
poses = np.loadtxt(poses, delimiter=
" ")
60 self.
cmap = plt.get_cmap(
"nipy_spectral")
68 f = open(filename,
"r")
82 ax = fig.add_subplot(111)
83 ax.set_xticks(np.arange(-1, 1, self.
resolution))
84 ax.set_yticks(np.arange(-1, 1, self.
resolution))
85 for prim
in self.
prims: