NDPositionsSlicer#

NDPositionsSlicer#

Constructor#

NDPositionsSlicer(data, dims, display_dims)

NDSlicer subclass for n-dimensional positional and timeseries data.

Properties#

NDPositionsSlicer.data

get or set managed data.

NDPositionsSlicer.datapoints_window_func

Get or set the window function applied along the p dim, as (func, apply_dims, window_size).

NDPositionsSlicer.dims

dim names, ordered as laid out in the array

NDPositionsSlicer.display_dims

get or set the spatial dims, in display order

NDPositionsSlicer.display_dims_indices

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

NDPositionsSlicer.display_window

get or set the display window, in the reference units of the p dim

NDPositionsSlicer.max_display_datapoints

Get or set the maximum number of datapoints to render per graphic.

NDPositionsSlicer.n_slider_dims

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

NDPositionsSlicer.ndim

number of dims

NDPositionsSlicer.shape

interpreted shape of the data

NDPositionsSlicer.slider_dims

slider dim names, the non-spatial dims plus the p dim

NDPositionsSlicer.slider_maps

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

NDPositionsSlicer.spatial_func

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

NDPositionsSlicer.tooltip

whether or not a custom tooltip formatter method exists

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

NDPositionsSlicer.window_order

get or set dimension order in which window functions are applied

Methods#

NDPositionsSlicer.close()

Shut down the thread pool.

NDPositionsSlicer.get(indices)

slices through all slider dims and outputs an array that can be used to set graphic data

NDPositionsSlicer.get_window_output(indices)

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

NDPositionsSlicer.set_other_feature(name, value)

set, or clear if value is None, an other graphic feature to window per-datapoint

NDPositionsSlicer.tooltip_format(*args)

Override in subclass to format custom tooltips