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 coordinate edges when you supply coordinate centers to pseudocolor commands.

  • 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.


numpy.ndarray – Array of “edge” coordinates.