Questions tagged [slider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
41
votes
3answers
4k views

Manipulate with a variable number of sliders

I have a function that operates on a list of parameters of variable-length $n$. I would like to create a Manipulate[] that has $n$ sliders, one for each list ...
15
votes
6answers
2k views

How to set precision and format labeled Slider in Manipulate?

For my calculations, I need increased precision of parameter k in my Manipulate: ...
10
votes
1answer
1k views

Using Interval Slider in Manipulate for Plot Functionality

I am trying to incorporate Interval Sliders in Manipulate to allow the user to select a range to view a given plot. Here is an example that I have constructed for ...
9
votes
2answers
338 views

Passing an unevaluated part of an association to a function

I'm making a UI widget that controls sound volume on a speaker using a slider, e.g.: ...
8
votes
2answers
92 views

Avoid clipping label in IntervalSlider?

For custom appearances IntervalSlider seems to clip on the right side: ...
7
votes
1answer
311 views

Slider with ticks

I am not happy with the "Labeled" appearance of the slider in Animate or Manipulate. Instead, I wish ticks with multiple of pi under the slider. ...
6
votes
1answer
122 views

How to control two different variables with Locator?

It's my first time here but I didn't find answer to my problem and I can't menage that by myself,Mathematica documentation or even by previous stackexchange problems. In Manipulate I have two ...
6
votes
3answers
280 views

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

After I evaluate the following dynamic expression I encounter an unexpected behavior: ...
6
votes
1answer
94 views

Slider Size Problem

Consider this simple code Slider[0.5, ImageSize -> {Automatic, 50}] We get But if we add another option ...
5
votes
3answers
231 views

Manipulate Slider to take its values from primes

How do I make the slider values in Manipulate be values that are prime numbers? Many thanks for any assistance. Firstly, many thanks for all your considered and rapid responses. It really is very ...
5
votes
2answers
73 views

Updating/ disabling certain slider values dynamically in Manipulate

I am struggling with Manipulate dynamic updating. I would like to have an image containing two points which can both be moved in real time to any location on the ...
5
votes
2answers
247 views

Make a time IntervalSlider

I want to make a time interval slider with an initial setting of (10:00:00 Mar. 8 2015, 12:30:00 Mar. 8 2015) and which varies from 00:00:00 Mar. 8 2015 to 22:30:00 Mar. 8 2015 with a granularity of ...
5
votes
1answer
976 views

How to change size of slider in Manipulate?

I have Manipulate function with a few horizontal sliders. When I call ImageSize->Small in Plot within my Manipulate only plot of function is resizing and sliders are still big, so I'd like to make ...
4
votes
3answers
249 views

Manipulate controls don't work

I find one solution to make +/- buttons near Slider Control of Manipulate. But I don't understand why it works so bad. ...
4
votes
2answers
176 views

Slider changes Pi to a MachinePrecision number

Problem Consider the following code: DynamicModule[{a = {0, Pi}, b = 4}, {Slider[Dynamic@b, {a}], Dynamic@b} ] I want a Slider...
4
votes
1answer
115 views

Create a slider to illustrate Fubini theorem

I would like to illustrate the Fubini theorem in Calculus like the following picture (taken from this page): This is what I tried: ...
4
votes
1answer
196 views

Appearance of a slider

I just observed that in Mathematica 10.3 for Windows the appearance of a slider has been changed. The slider is now blue, black when the mouse is over the slider and gray when the slider is dragged. ...
4
votes
3answers
65 views

Manipulate two graphs with one parameter

This question is related to a previous question Create a slider to illustrate Fubini theorem. Thank to the help of @kglr, now I can create sliders to control the slice. ...
3
votes
2answers
109 views

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

Let lower and upper be fixed constants, with lower < ...
3
votes
2answers
55 views

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

I'm creating an application with Dynamics for calculating and plotting circular orbits. It allows the user to set a custom radius, giving them an option to either use an InputField as well as a ...
3
votes
2answers
139 views

make a slider for a list of matrices

I have a list of matrices, called $matList$, which are sequentially multiplied by another matrix $G$. I created a slider for $matList$, but the slider does not work. Here is the ...
3
votes
2answers
109 views

How to reduce spacing between vertical sliders?

Consider the following code: ...
3
votes
1answer
109 views

Slider does not update graphic until SetterBar is changed

I'm illustrating how $sin$ changes when passing different functions to it. For simplicity I'll leave out the $sin$ here. I created a Slider for a parameter and a <...
3
votes
2answers
94 views

Slider behaving unexpectedly when non-horizontal

For this simple code {Dynamic@Rotate[Slider[Dynamic@x, {0, 2*Pi}], x], Slider[Dynamic@x, {0, 2*Pi}]} At x=0 the slider has an ...
3
votes
1answer
100 views

How can I combine 2D slider with MatrixPlot? [duplicate]

If I enter MatrixPlot[{{1, 2}, {3, 4}}],it shows: How can I combine this with a 2D slider,when I move the slider to a region,it could show me the value that ...
3
votes
1answer
54 views

Reset sliders to default (zero) when a PopupMenu item is selected

I am setting up a UI with sliders that are enabled or disabled according to the item in a PopupMenu. I have been trying to figure out how to reset the sliders to ...
3
votes
1answer
105 views

FormPage not sending new values from Slider

I have an Association of string keys and numerical values, which is read from a configuration file. I would like to allow users to drag sliders and adjust the ...
3
votes
1answer
208 views

How can I control Manipulate slider bars with an external device?

I have lots of interactive graphics and I want to control the parameters of the Manipulate[...] with a Griffin USB PowerMate plugged in. I tried ...
2
votes
2answers
311 views

Range of plot function does not accept Dynamic output [duplicate]

Below is some code to produce a Fourier series. I want to be able to adjust L to change not only the function, but also the plot limits. I am getting the error : ...
2
votes
4answers
418 views

Slider for different plots

Hi I've got 12 different plots and I want to be able to cycle through them with a slider, however, none of the options for manipulate or slider seem to be able to handle multiple plots. My parameter ...
2
votes
2answers
188 views

Question about Slider and adding buttons

I would like to add some buttons next to a slider for higher accuracy movements. For instance I have this slider, which has 1-step, pretty easy to use. ...
2
votes
1answer
82 views

Question about Working with Lists / Tables

I have a data point set embedded in a manipulate. dtpts1a={{X,Y},{X,Y},{X,Y},{X,Y},{X,Y},{X,Y},{X,Y}, and so on and so forth, continuing} How do I alter, how do I change the magnitude of each ...
2
votes
2answers
219 views

How to make a time slider like Manipulate[n,{n,1,20,1}]?

I want to make a time slider varied from 12:00:00 Jan 1,2015 to 22:30:00 Jan 1,2015 for every 5 minute. So like using Manipulate[n,{n,1,20,1}], ...
2
votes
1answer
71 views

Implement an IntervalSlider

I do not know how to incorporate an IntervalSlider in the code below in order to change the two instances of the t-domain (in the ...
2
votes
1answer
178 views

How to dynamically gray out a slider?

Here's a very simple MWE to show my problem : ...
2
votes
1answer
62 views

How to create a seek bar with Slider

I am trying to create a simple audio player but I am stuck at designing the seek bar. I am using the AudioStream framework. After loading music in a variable <...
2
votes
1answer
58 views

Plotting eigenfunctions as functions of parameters in the hamiltonian

I'm finding eigenfunctions using NDEigensystem of various hamiltonians. For example, the hamiltonian with Shcrödinger's equation: $$ H u(x)=-\hbar^2 u''(x) + A x^2 u(x). $$ I would like to be able to ...
2
votes
2answers
164 views

Slider with varying scales

I am trying to implement a slider whose control range varies depending on the current value: ...
2
votes
1answer
253 views

Plot multiple datasets with ListPlot and SlideRegulators

I recently got into Mathematica and have a script from my professor, which calculates and plots some values zR*Tan[phi] + z0 + R1 from different variables. The variables can be adjusted by a slide. I ...
2
votes
1answer
264 views

ListAnimate for nested lists with two sliders

I have a very complicated function of three variables (a,b,c). Now I want to plot the function value as a function of a while ...
2
votes
0answers
52 views

Dynamic Slider and InputField: some numbers with machine precision display badly [duplicate]

I want to control a value in my program either by a Slider or an InputField. The following code does what I want in principle: <...
2
votes
0answers
87 views

Precision of sliders in WebMathematica

I have been developing a Manipulate plot to put on the web. One of my parameters varies over a small interval, ...
1
vote
2answers
94 views

How to use slider over an arbitrary list? [closed]

I have a list that has no definitive pattern or incremental difference. Can I make a Slider go over the items in the list? For instance, here is an arbitrary list ...
1
vote
1answer
306 views

How can I mark a point on a slider control?

I have a Slider control inside a Manipulate which spans some range of values, say from 0 to 10, like in: Manipulate[ Sin@x, {x, -2 Pi, 2 Pi} ] I would like ...
1
vote
1answer
167 views

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

I'm using a dynamic number of sliders and I want to access the current values of them. The values can be seen on the labels. However, I want them to be stored into an array. Below is what I have done ...
1
vote
2answers
44 views

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

I have a random walk and I created a checkbox for the animation of the walk. I want the checkbox to do the followings, but I have not found a solution yet: check the checkbox -> the slider of n ...
1
vote
1answer
2k views

Slider with initial value on manipulate [duplicate]

Consider this simple code Manipulate[n, {{n, 3}, 1, 5, 1}] It will produce If we click on Show-Animation-Controls button next to the slider, suddenly the value ...
1
vote
1answer
36 views

Columned text not showing up in Manipulate plot variable label

I can't figure out why my columned text in the variables of my Manipulate plot are not showing up. In the labels for the variables, I set columns but only the top set of text is showing up. For ...
1
vote
2answers
52 views

Slider for a list of real numbers versus a list of matrices

Suppose that there are two lists, where capital letters in List1 denote matrices. ...
1
vote
1answer
126 views

Creating a DynamicModule with multiple variables created automatically

I want to create a DynamicModule that has several variables that were automatically created. For example: ...