mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 15:44:06 +08:00
BUG: fix end_points setter when given a tuple
Dragging of end points was broken.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user