NDVectors#

NDVectors#

Constructor#

NDVectors(ref_index, nd_subplot, data, dims, ...)

NDGraphic subclass for n-dimensional vector rendering.

Properties#

NDVectors.data

get or set managed data.

NDVectors.dims

dim names

NDVectors.display_dims

(n_vectors, positions & directions, xy(z)), so the data slice is of shape [n_vectors, 2, 2 | 3].

NDVectors.graphic

Underlying Graphic object used to display the current data slice

NDVectors.indices

the current index of each slider dim in reference-space units, from the ReferenceIndex

NDVectors.indices_displayed

the indices that the graphic currently represents

NDVectors.name

name given to the NDGraphic

NDVectors.ndim

number of dims

NDVectors.pause

Get or set whether this graphic ignores changes in the ReferenceIndex.

NDVectors.shape

interpreted shape of the data

NDVectors.slicer

NDSlicer that manages the data and produces data slices to display

NDVectors.slider_dims

the slider dims

NDVectors.slider_maps

Get or set the per-slider-dim mapping from reference-space values to local array indices, {dim_name: transform}.

NDVectors.spatial_func

Get or set the function applied to the spatial slice after the window funcs, right before rendering.

NDVectors.window_funcs

Get or set the per-slider-dim window functions applied around the current slider position, {dim_name: (func, window_size)}, ex: {"time": (np.mean, 2.5)}.

NDVectors.window_order

get or set dimension order in which window functions are applied

Methods#