Sorry - bit of a yes/no question: Is it possible to make the slider from a manipulation jump in irregular steps? Or would the best way to overcome this be to just create a series of buttons that jump the manipulation to the desired position?

  • 1
    $\begingroup$ Check the second argument of Dynamic $\endgroup$
    – Rojo
    Commented Dec 14, 2013 at 2:07
  • 1
    $\begingroup$ Great - will do that now :) $\endgroup$
    – martin
    Commented Dec 14, 2013 at 2:09
  • $\begingroup$ More specifically: The Second Argument of Dynamic $\endgroup$
    – Michael E2
    Commented Dec 14, 2013 at 2:10
  • 2
    $\begingroup$ If it doesn't matter where on the slider the knob lies, this syntax will do it: Slider[Dynamic[x],{{val1,val2,val3,...}}]. If it matters, look at the documentation page for Slider, last example under Scope. $\endgroup$
    – C. E.
    Commented Dec 14, 2013 at 2:13

1 Answer 1


Just writing down what I and Rojo talked about in the comments, we get:

datapoints = {{1, 1}, {5, 4}, {20, 15}};
 {n, datapoints, ControlType -> "Slider"},
 Initialization :> (n = 1)

where the slider jumps from 1 to 5 to 20. The gap between one and five is four, the gap between five and twenty is fifteen.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.