Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Check the second argument of Dynamic – Rojo Dec 14 '13 at 2:07
Great - will do that now :) – martin Dec 14 '13 at 2:09
More specifically: The Second Argument of Dynamic – Michael E2 Dec 14 '13 at 2:10
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. – C. E. Dec 14 '13 at 2:13
up vote 6 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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