edges2d

edges2d(Z)[source]

Like edges but for 2d arrays. The size of both axes are increased by one. This is used internally to calculate graitule edges when you supply centers to pcolor or pcolormesh.

Parameters

Z (array-like) – A 2d array.

Returns

ndarray – Array of “edge” coordinates.