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:
...
12
votes
Accepted
9
votes
Accepted
8
votes
Accepted
7
votes
6
votes
Accepted
6
votes
Avoid clipping label in IntervalSlider?
You can also wrap the interval slider object with Style and use DefaultOptions to set ...
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):
...
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:
...
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 ...
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.,
...
4
votes
Accepted
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:
...
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:
...
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 ...
Community wiki
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 ...
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 :
...
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 (...
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 ...
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.
...
3
votes
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 ...
3
votes
Accepted
2
votes
Accepted
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 ...
2
votes
Accepted
Use ToExpression["variablename"] in Slider
Perhaps this change?:
Slider[Dynamic[Evaluate@ToExpression[#, StandardForm, Unevaluated]], {1, 5}]...
Dynamic is ...
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 ...
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 ...
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
...
2
votes
Accepted
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
slider × 75manipulate × 47
dynamic × 20
plotting × 15
gui-construction × 11
list-manipulation × 7
button × 4
graphics × 3
locator × 3
matrix × 2
graphics3d × 2
animation × 2
display × 2
precision-and-accuracy × 2
interface × 2
inputfield × 2
user-interface × 2
formpage × 2
appearance × 2
differential-equations × 1
front-end × 1
formatting × 1
scoping × 1
associations × 1
date-and-time × 1