edges2d¶
- edges2d(z)[source]¶
Calculate the approximate “edge” values given a 2D grid of “center” values. The size of both axes is increased by one. This is used internally to calculate graticule edges when you supply centers to pseudocolor plot commands.
- Parameters
z (array-like) – A 2D array.
- Returns
numpy.ndarray
– Array of “edge” coordinates.