edges¶
-
edges
(array, axis=-1)[source]¶ Calculates approximate “edge” values given “center” values. This is used internally to calculate graitule edges when you supply centers to
pcolor
orpcolormesh
, and in a few other places.- Parameters
array (array-like) – Array of any shape or size. Generally, should be monotonically increasing or decreasing along
axis
.axis (int, optional) – The axis along which “edges” are calculated. The size of this axis will be augmented by one.
- Returns
ndarray
– Array of “edge” coordinates.