push_dims#
- ReferenceIndices.push_dims(ref_ranges)[source]#
Add reference ranges, i.e. register new slider dims.
The index of each new dim is initialized to the start of its range, and a slider for it is added to the UI of every
NDWidgetmanaged by thisReferenceIndex.- Parameters:
ref_ranges (dict[str, tuple | RangeContinuous | RangeDiscrete]) – Mapping of dim names to range specifications. A 3-tuple
(start, stop, step)creates aRangeContinuous, a 1-tuple(options,)creates aRangeDiscrete, and aRangeContinuousorRangeDiscreteinstance is used as given. An existing dim of the same name is replaced.