edges

edges(z, axis=- 1)[source]

Calculate the approximate “edge” values along an axis given “center” values. The size of the axis is increased by one. This is used internally to calculate graticule edges when you supply centers to pseudocolor commands.

Parameters
  • z (array-like) – An array of any shape.

  • axis (int, optional) – The axis along which “edges” are calculated. The size of this axis will be increased by one.

Returns

numpy.ndarray – Array of “edge” coordinates.