matplotlib 3.5.1

ParametersReturns
_array_patch_perimeters(x, rstride, cstride)

Extracted patches are of size (rstride + 1) x (cstride + 1) and share perimeters with their neighbors. The ordering of the vertices matches that returned by _array_perimeter .

Parameters

x : ndarray, shape (N, M)

Input array

rstride : int

Vertical (row) stride between corresponding elements of each patch

cstride : int

Horizontal (column) stride between corresponding elements of each patch

Returns

ndarray, shape (N/rstride * M/cstride, 2 * (rstride + cstride))

Extract perimeters of patches from arr.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/cbook/__init__.py#1965
type: <class 'function'>
Commit: