Calculate the approximate “edge” values along an arbitrary axis, given “center” values. This is used internally to calculate graticule edges when you supply centers to
pcolormeshand to calculate colormap levels when you supply centers to any method wrapped by
Z (array-like) – Array of any shape or size. Generally, should be monotonically increasing or decreasing along
axis (int, optional) – The axis along which “edges” are calculated. The size of this axis will be increased by one.
ndarray– Array of “edge” coordinates.