Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions chaco/tools/lasso_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down Expand Up @@ -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
Expand Down