NDVectorsSlicer#

NDVectorsSlicer#

Constructor#

NDVectorsSlicer(data, dims, display_dims[, ...])

NDSlicer subclass for n-dimensional vector data.

Properties#

NDVectorsSlicer.data

get or set managed data.

NDVectorsSlicer.dims

dim names, ordered as laid out in the array

NDVectorsSlicer.display_dims

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

NDVectorsSlicer.display_dims_indices

The ordered spatial dim indices that correspond to the named spatial dims

NDVectorsSlicer.n_slider_dims

number of slider dims, i.e. len(slider_dims).

NDVectorsSlicer.ndim

number of dims

NDVectorsSlicer.shape

interpreted shape of the data

NDVectorsSlicer.slider_dims

Slider dim names, set(dims) - set(display_dims), unordered

NDVectorsSlicer.slider_maps

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

NDVectorsSlicer.spatial_func

Get or set the spatial function which is applied on the data slice after the window functions.

NDVectorsSlicer.tooltip

whether or not a custom tooltip formatter method exists

NDVectorsSlicer.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)}.

NDVectorsSlicer.window_order

get or set dimension order in which window functions are applied

Methods#

NDVectorsSlicer.close()

Shut down the thread pool.

NDVectorsSlicer.get(indices)

Get the data slice at the given indices, applying the window functions and the spatial func.

NDVectorsSlicer.get_window_output(indices)

Take the data slice at the given indices and apply the window functions.

NDVectorsSlicer.tooltip_format(*args)

Override in subclass to format custom tooltips