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
orpcolormesh
.- Parameters
z (array-like) – A 2d array.
- Returns
ndarray
– Array of “edge” coordinates.