Skip to main content
13 votes

How constrain 2d slider in Manipulate to a specified region?

You can use TrackingFunction to restrict the Slider2D thumb to the desired region: Restrict the thumb to the unit circle: ...
kglr's user avatar
  • 401k
12 votes
Accepted

Slider with ticks

1. You can use HorizontalGauge as a control in Manipulate: ...
kglr's user avatar
  • 401k
9 votes
Accepted

How to control two different variables with Locator?

is this what you mean? ...
Nasser's user avatar
  • 151k
8 votes
Accepted

How constrain 2d slider in Manipulate to a specified region?

...
Bob Hanlon's user avatar
  • 163k
7 votes

Avoid clipping label in IntervalSlider?

You can tweak underlying Graphics: ...
Kuba's user avatar
  • 138k
6 votes
Accepted

Updating/ disabling certain slider values dynamically in Manipulate

...
Kuba's user avatar
  • 138k
6 votes

Avoid clipping label in IntervalSlider?

You can also wrap the interval slider object with Style and use DefaultOptions to set ...
kglr's user avatar
  • 401k
6 votes
Accepted

Why does the Slider value change from an Integer to a Real, causing the Manipulate expression to break?

It seems like a bug. Here's fix, via explicitly constructing the slider (Manipulator): ...
Michael E2's user avatar
  • 245k
5 votes
Accepted

How to get sliders to represent lower $\leq x < y < z \leq$ upper?

How about using a different object to control some variables? It's not exactly a Manipulate control but it can have the same effect: ...
lowriniak's user avatar
  • 2,412
5 votes
Accepted

Question about Working with Lists / Tables

dtpts1a = Table[RandomInteger[{1,100}],{i,128},{j,2}]; Manipulate[ MapAt[n*#&, dtpts1a, {All,2}] ,{n,0,1}] EDIT By default ...
Hausdorff's user avatar
  • 3,535
5 votes
Accepted

Slider changes Pi to a MachinePrecision number

If you want the control variable to only take exact values you need to specify all values including the step value as exact values, e.g., ...
Bob Hanlon's user avatar
  • 163k
4 votes
Accepted

Implement an IntervalSlider

...
Kuba's user avatar
  • 138k
4 votes
Accepted

How to dynamically gray out a slider?

So to expand a little on my comment, to make a slider be greyed out you can use Enabled: ...
lowriniak's user avatar
  • 2,412
4 votes

How to get sliders to represent lower $\leq x < y < z \leq$ upper?

A teeny modification to Smit's solution, to fit the requirements of the question: ...
David G. Stork's user avatar
4 votes
Accepted

How to access the dynamic values of a set of sliders?

Perhaps not easy to find in the documentation, but answered clearly in the section called A Good Trick to Know in the tutorial, "An Introduction to Dynamic": This can be done with ...
4 votes
Accepted

Create a slider to illustrate Fubini theorem

If it is not essential to have two different colors for the filling in the 3D plot, you can use a single Plot3D with the option ...
kglr's user avatar
  • 401k
4 votes
Accepted

How to display and control current value of a 2d slider

The nontrivial part of your question is (2) if interpreted as : "How to use a 2D Slider and some 1D Sliders to manipulate the same object {x,y} ?" Here is one way to do it : ...
andre314's user avatar
  • 19k
4 votes
Accepted

Having three Control Objects for the same Dynamic variable which can override eachother

Note: See also my other answer for a different approach and a discussion of the differences between the two. You can achieve what you want by introducing a helper variable (...
Lukas Lang's user avatar
  • 34.4k
4 votes
Accepted

Detent in Manipulate slider

Maybe this is what you're after: Manipulate[u, {u, 0, 1, TrackingFunction -> ((u = If[Abs[# - 0.5] < 0.2, 0.5, #]) &)}] You cannot really change in ...
Michael E2's user avatar
  • 245k
3 votes

Updating/ disabling certain slider values dynamically in Manipulate

This is probably too late, since kuba's answer has already been accepted, but I couldn't get his solution using a locator pane to work, so I'm posting my own more pedestrian version. ...
m_goldberg's user avatar
  • 108k
3 votes

make a slider for a list of matrices

Maybe if you want a slider, use Slider: ...
Michael E2's user avatar
  • 245k
3 votes
Accepted

Slider does not update graphic until SetterBar is changed

Kuba nailed the origin of your problem in his comment: in your code Manipulate is not aware that it needs to track symbol p ...
MarcoB's user avatar
  • 67.7k
3 votes
Accepted

How to create a seek bar with Slider

Maybe something like this will get you started? ...
MassDefect's user avatar
  • 10.2k
2 votes
Accepted

How to reduce spacing between vertical sliders?

try this ...
ZaMoC's user avatar
  • 6,757
2 votes
Accepted

Creating a DynamicModule with multiple variables created automatically

Update Kuba and Holistic pointed out some issues with the original answer. This new version addresses those issues: To insert the built variable names in such a way that they're not affected by ...
Lukas Lang's user avatar
  • 34.4k
2 votes
Accepted

Use ToExpression["variablename"] in Slider

Perhaps this change?: Slider[Dynamic[Evaluate@ToExpression[#, StandardForm, Unevaluated]], {1, 5}]... Dynamic is ...
Michael E2's user avatar
  • 245k
2 votes
Accepted

make a slider for a list of matrices

More an extended comment than an answer. In addition to what kglr has said, you might have much more fun with this if you move the random matrix generation and the preliminary calculations out of the ...
Henrik Schumacher's user avatar
2 votes

Having three Control Objects for the same Dynamic variable which can override eachother

In my other answer, I show how to achieve the desired effect using the second argument of Dynamic to manually do the necessary changes to the ...
Lukas Lang's user avatar
  • 34.4k
2 votes

Expand a slider only when a checkbox is checked and Animate for only once

I want the slider to be hidden at first, and to be shown only when I check the checkbox In this case I suggest you use OpenerView code ...
Nasser's user avatar
  • 151k
2 votes
Accepted

Why is my dynamic slider no longer working?

I'm guessing you want this? ...
Sjoerd Smit's user avatar
  • 24.8k

Only top scored, non community-wiki answers of a minimum length are eligible