grid = nd_grid()
creates an instance which will return a mesh-grid when indexed. The dimension and number of the output arrays are equal to the number of indexing dimensions. If the step length is not a complex number, then the stop is not inclusive.
However, if the step length is a complex number (e.g. 5j), then the integer part of its magnitude is interpreted as specifying the number of points to create between the start and stop values, where the stop value is inclusive.
If instantiated with an argument of sparse=True
, the mesh-grid is open (or not fleshed out) so that only one-dimension of each returned argument is greater than 1.
Two instances of nd_grid
are made available in the NumPy namespace, :None:None:`mgrid`
and :None:None:`ogrid`
, approximately defined as:
mgrid = nd_grid(sparse=False) ogrid = nd_grid(sparse=True)
Users should use these pre-defined instances instead of using nd_grid
directly.
Whether the grid is sparse or not. Default is False.
Construct a multi-dimensional "meshgrid".
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.lib.index_tricks.nd_grid
numpy.lib.index_tricks.OGridClass
numpy.lib.index_tricks.MGridClass
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