IntervalSlider
✖
IntervalSlider
takes the setting to be the dynamically updated current value of int, with the value of int being reset if the slider is moved.
Details and Options


- IntervalSlider[…] displays in a notebook as a horizontal slider with three slider thumbs that can be manipulated interactively.
- IntervalSlider[Dynamic[int]] will reset the value of int when the slider is moved; IntervalSlider[int] will not.
- IntervalSlider[int,{min,max,dx}] jumps to integer positions if min and dx are integers.
- The following options can be given:
-
Appearance Automatic the overall appearance of the slider AutoAction False whether to move the slider automatically when the mouse is over it Background Automatic the background for the slider BaselinePosition Automatic alignment relative to the surrounding text BaseStyle {} base style specifications for the slider ContinuousAction True whether to update continuously when the slider is moved Enabled Automatic whether the slider is enabled or grayed out ImageMargins Automatic margins around the image of the displayed slider ImageSize Medium the overall image size of the displayed slider Method Automatic method by which the two endpoint slider thumbs interact MinIntervalSize 0 how close the two endpoints can be to each other - Possible settings for Appearance include Automatic, "Markers", "Generic", "Locator", and None.
- If the Appearance setting includes "Vertical", a vertical slider will be displayed.
- Appearance -> "Labeled" displays the current value of the slider as an editable label.
- If the Appearance setting includes "ThumbAppearance"->{expr1,expr2,expr3}, the three interactive points on the slider will use the given expressions for their display. Nothing will be displayed for the interactive point if None is specified.
- Possible settings for Method include "Free", "Push", and "Stop".
- IntervalSlider[] is equivalent to IntervalSlider[{0.25, 0.75}].
- The resulting slider can be finely manipulated by holding down the
key (or
on Macintosh) while dragging the mouse. This causes the slider to move at 1/20 the rate of the mouse. The slider can be even more finely manipulated by also holding the
and/or
keys.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (4)Survey of the scope of standard use cases

https://wolfram.com/xid/0d6gf6yuaa-38innh

Use only integer variable values:

https://wolfram.com/xid/0d6gf6yuaa-ptuj9


https://wolfram.com/xid/0d6gf6yuaa-03svbp


https://wolfram.com/xid/0d6gf6yuaa-tmiq44

Use a custom function when assigning new values:

https://wolfram.com/xid/0d6gf6yuaa-n6vf4x

Options (11)Common values & functionality for each option
Appearance (5)

https://wolfram.com/xid/0d6gf6yuaa-otd5m5


https://wolfram.com/xid/0d6gf6yuaa-b0qdgx


https://wolfram.com/xid/0d6gf6yuaa-zf5hjf

Show no special slider thumbs:

https://wolfram.com/xid/0d6gf6yuaa-t6zzk4

Show the current interval values in an editable label:

https://wolfram.com/xid/0d6gf6yuaa-jdbluf


https://wolfram.com/xid/0d6gf6yuaa-szd56c

Appearance can be set to a list:

https://wolfram.com/xid/0d6gf6yuaa-e5utxu

Use any expression as slider thumbs:

https://wolfram.com/xid/0d6gf6yuaa-pmmviw

Enabled (2)
By default, IntervalSlider is enabled:

https://wolfram.com/xid/0d6gf6yuaa-znj50b

By setting Enabled->False, the slider is disabled but visible in its current state:

https://wolfram.com/xid/0d6gf6yuaa-8aplo0

Method (3)
When trying to drag one endpoint past the other, the default method will not stop you:

https://wolfram.com/xid/0d6gf6yuaa-wwegv3

The "Push" method causes the dragging of one endpoint to push the other out of the way:

https://wolfram.com/xid/0d6gf6yuaa-xcrox4

With the "Stop" method, you cannot drag one endpoint past the other:

https://wolfram.com/xid/0d6gf6yuaa-svaljj

MinIntervalSize (1)
If the two thumbs must have different values, set MinIntervalSize to a positive number:

https://wolfram.com/xid/0d6gf6yuaa-hkk75y

Applications (1)Sample problems that can be solved with this function
Properties & Relations (1)Properties of the function, and connections to other functions
ControlType->IntervalSlider will create an IntervalSlider in Manipulate:

https://wolfram.com/xid/0d6gf6yuaa-9dwo4m

Possible Issues (1)Common pitfalls and unexpected behavior
By default, IntervalSlider does not force the first element to remain less than the second:

https://wolfram.com/xid/0d6gf6yuaa-7f8e0b

To prevent dragging the minimum greater than the maximum, use Method -> "Push" or "Stop":

https://wolfram.com/xid/0d6gf6yuaa-s5dols

Add a MinIntervalSize setting if the minimum should be strictly less than the maximum:

https://wolfram.com/xid/0d6gf6yuaa-hu17bp

Wolfram Research (2014), IntervalSlider, Wolfram Language function, https://reference.wolfram.com/language/ref/IntervalSlider.html (updated 2019).
Text
Wolfram Research (2014), IntervalSlider, Wolfram Language function, https://reference.wolfram.com/language/ref/IntervalSlider.html (updated 2019).
Wolfram Research (2014), IntervalSlider, Wolfram Language function, https://reference.wolfram.com/language/ref/IntervalSlider.html (updated 2019).
CMS
Wolfram Language. 2014. "IntervalSlider." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/IntervalSlider.html.
Wolfram Language. 2014. "IntervalSlider." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/IntervalSlider.html.
APA
Wolfram Language. (2014). IntervalSlider. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntervalSlider.html
Wolfram Language. (2014). IntervalSlider. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntervalSlider.html
BibTeX
@misc{reference.wolfram_2025_intervalslider, author="Wolfram Research", title="{IntervalSlider}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/IntervalSlider.html}", note=[Accessed: 27-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_intervalslider, organization={Wolfram Research}, title={IntervalSlider}, year={2019}, url={https://reference.wolfram.com/language/ref/IntervalSlider.html}, note=[Accessed: 27-April-2025
]}