slider_maps#

property NDVectors.slider_maps: dict[str, Callable[[Any], int]]#

Get or set the per-slider-dim mapping from reference-space values to local array indices, {dim_name: transform}. Setting it re-renders the current data slice.

A transform may be given as a Callable that takes a reference-space value and returns an array index, or as an array of reference values in which case its searchsorted is used as the transform (ex: a timestamps array). Any dim given None, or not given at all, uses the identity mapping, i.e. the reference value is rounded to the nearest integer and used as the array index.