This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


represents a 2D slider with settings x and y in the range 0 to 1.
takes the setting to be the dynamically updated current value of pt, with the value of pt being reset if the slider is moved.
represents a 2D slider with range min to max in each direction.
represents a 2D slider that jumps in steps d in each direction.
specifies different ranges in x and y directions.
uses jumps dx, dy.
  • Slider2D[...] displays in a notebook as a 2D slider that can be manipulated interactively, and moved in both horizontal and vertical directions.
  • Slider2D jumps to integer positions if and dn are integers.
  • In Slider2D, dx or dy can be , indicating that settings in the corresponding direction should be continuous.
  • The coordinates in Slider2D run in the same directions as the default for Graphics, with x running from left to right, and y running from bottom to top.
  • Slider2D with > represents a 2D slider with y running from top to bottom.
  • If the value of the 2D slider is outside the ranges given, it will be displayed at one of the sides.
  • The following options can be given:
AppearanceAutomaticthe overall appearance of the 2D slider
AutoActionFalsewhether to move the 2D slider automatically when the mouse is over it
BaselinePositionAutomatichow to align with a surrounding text baseline
BaseStyle{}base style specifications for the 2D slider
ContinuousActionTruewhether to update continuously when the slider is moved
EnabledAutomaticwhether the 2D slider is enabled, or grayed out
Exclusions{}specific points to exclude
ImageMargins0margins around the image of the displayed 2D slider
ImageSizeAutomaticthe overall image size of the displayed 2D slider
  • The settings for BaseStyle are appended to the default style typically given by the style in the current stylesheet.
A particular 2D slider setting:
Dynamically update the slider setting:
A particular 2D slider setting:
Click for copyable input
Dynamically update the slider setting:
Click for copyable input
Define a range:
Define a range and step size:
Use Evaluate in Place to get an active 2D slider:
Then evaluate Setting to get the actual value out:
Values will change as the cursor moves over the slider:
Set the baseline for alignment with surrounding text:
By default, settings are changed continuously as the controller is affected:
Makes settings update only when the mouse is released:
By default, Slider2D is enabled:
Make the slider disabled but visible in its current state:
Use symbolic values for image margins:
Set the image margin in printer's points:
Use preset values:
Use numerical values:
A color selector:
A simple camera controller:
A Locator or LocatorPane can be used if the control should be contained within graphics:
The limits in Slider2D are specified by giving coordinates of corners, not x and y ranges:
The limits are identical, so the slider cannot move:
Coupled sliders:
New in 6