train running dataset fixed
This commit is contained in:
@@ -14,7 +14,7 @@ class Trajectory(object):
|
||||
|
||||
@property
|
||||
def xy_vertices(self):
|
||||
return [(x,y) for _, x,y in self._vertices]
|
||||
return [(x, y) for _, y, x in self._vertices]
|
||||
|
||||
@property
|
||||
def endpoints(self):
|
||||
@@ -30,11 +30,11 @@ class Trajectory(object):
|
||||
|
||||
@property
|
||||
def xs(self):
|
||||
return [x[1] for x in self._vertices]
|
||||
return [x[2] for x in self._vertices]
|
||||
|
||||
@property
|
||||
def ys(self):
|
||||
return [x[0] for x in self._vertices]
|
||||
return [x[1] for x in self._vertices]
|
||||
|
||||
@property
|
||||
def as_paired_list(self):
|
||||
@@ -59,7 +59,7 @@ class Trajectory(object):
|
||||
kwargs.update(color='red' if label == V.HOMOTOPIC else 'green',
|
||||
label='Homotopic' if label == V.HOMOTOPIC else 'Alternative')
|
||||
if highlights:
|
||||
kwargs.update(marker='bo')
|
||||
kwargs.update(marker='o')
|
||||
fig, ax = plt.gcf(), plt.gca()
|
||||
img = plt.plot(self.xs, self.ys, **kwargs)
|
||||
return dict(img=img, fig=fig, ax=ax)
|
||||
|
||||
Reference in New Issue
Block a user