diff --git a/chaco/tools/lasso_selection.py b/chaco/tools/lasso_selection.py index f3c7bc57c..fa2d5b4f9 100644 --- a/chaco/tools/lasso_selection.py +++ b/chaco/tools/lasso_selection.py @@ -2,7 +2,7 @@ """ # Major library imports import numpy -from numpy import array, empty, sometrue, transpose, vstack, zeros +from numpy import array, empty, sometrue, vstack, zeros, ascontiguousarray # Enthought library imports from traits.api import Any, Array, Enum, Event, Bool, Instance, \ @@ -308,8 +308,9 @@ def _map_data(self, point): def _get_data(self): """ Returns the datapoints in the plot, as an Nx2 array of (x,y). """ - return transpose(array((self.plot.index.get_data(), self.plot.value.get_data()))) - + points = array((self.plot.index.get_data(), + self.plot.value.get_data())) + return ascontiguousarray(points.T) #------------------------------------------------------------------------ # Property getter/setters