edges2d

edges2d(Z)[source]

Calculate the approximate “edge” values given a 2d grid of “center” values. The size of both axes are increased by one. This is used internally to calculate graticule edges when you supply centers to pcolor or pcolormesh.

Parameters

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

Returns

ndarray – Array of “edge” coordinates.

See also

edges