axis_slice(a, start=None, stop=None, step=None, axis=-1)
The keyword arguments start, stop and step are used by calling slice(start, stop, step). This implies axis_slice() does not handle its arguments the exactly the same as indexing. To select a single index k, for example, use axis_slice(a, start=k, stop=k+1) In this case, the length of the axis 'axis' in the result will be 1; the trivial dimension is not removed. (Use numpy.squeeze() to remove trivial axes.)
The array to be sliced.
The slice parameters.
The axis of a
to be sliced.
Take a slice along axis 'axis' from 'a'.
>>> a = array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
... axis_slice(a, start=0, stop=1, axis=1) array([[1], [4], [7]])
>>> axis_slice(a, start=1, axis=0) array([[4, 5, 6], [7, 8, 9]])See :
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.signal._arraytools.axis_slice
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