Snap sliders to discrete values
You can snap slider values to discrete values using the valstep argument.
In this example the Freq slider is constrained to be multiples of pi, and the
Amp slider uses an array as the valstep argument to more densely sample
the first part of its range.
See Slider for an example of using
a Slider to control a single float.
See Image scaling using a RangeSlider for an example of using
a RangeSlider to define a range of values.
import
