BUG: fix end_points setter when given a tuple

Dragging of end points was broken.
This commit is contained in:
Tony S Yu
2012-12-15 09:27:07 -05:00
parent 6704285859
commit 244e68c232
+1 -1
View File
@@ -73,7 +73,7 @@ class LineTool(CanvasToolBase):
@end_points.setter
def end_points(self, pts):
self._end_pts = pts
self._end_pts = np.asarray(pts)
self._line.set_data(np.transpose(pts))
self._handles.set_data(np.transpose(pts))