shapely.get_y#

get_y(point, **kwargs)#

Returns the y-coordinate of a point

Parameters
pointGeometry or array_like

Non-point geometries will result in NaN being returned.

**kwargs

For other keyword-only arguments, see the NumPy ufunc docs.

See also

get_x, get_z

Examples

>>> from shapely import MultiPoint, Point
>>> get_y(Point(1, 2))
2.0
>>> get_y(MultiPoint([(1, 1), (1, 2)]))
nan