coords.Coords.xy#
- property Coords.xy#
Return the X- and Y-coordinates of all points.
Returns#
- numpy.ndarray
A view on the X- and Y-coordinates of all points, with shape equal to
self.shapeexcept the last axis has size 2.
Notes#
The returned array is a view on the data, not a copy. Modifying it will change the underlying
Coords.Examples#
>>> X = Coords(np.arange(6).reshape(2, 3)) >>> print(X.xy) [[0. 1.] [3. 4.]]