Questions relating to the dynamic family of functions in Mathematica, such as Dynamic, DynamicModule and Manipulate.

learn more… | top users | synonyms

3
votes
1answer
321 views

Initializing Manipulator value within DialogInput (version 10.1 only)

Bug introduced in 10.1.0 and fixed in 10.2.0 I've confirmed, with WRI, that an issue was introduced in version 10.1 with regard to initializing Manipulator Dynamic ...
1
vote
1answer
139 views

Slow program- Mathematica shuts down

I've been trying to draw dynamic pictures of level sets of certain polynomials. The code right now looks like that : ...
0
votes
1answer
93 views

Basic (?) dynamic module questions (If clause and refresh problems)

I'm building a dynamic module, but I'm stuck with a few things i don't know how to deal with. In particular I'm stuck with the "If" sentence and the refresh inside the dynamic module. Here's a ...
3
votes
2answers
86 views

Why doesn't Quantity accept a Dynamic expression as a second argument?

If anyone can help me with this, it would be greatly appreciated. I'm using the following code with the intent of using controls to easily input values and units: ...
3
votes
2answers
106 views

Is it possible to return a list of variable values set by Manipulate?

Is it possible to write a function that returns a set of values that are set by Manipulate? For example, a function that returns a dataset of variables modified by ...
1
vote
2answers
108 views

How to show system busy during Dynamic with SynchronousUpdating -> False?

For long running evaluations in Dynamic it is recommended that SynchronousUpdating -> False be used to prevent time-out. ...
6
votes
0answers
156 views

Trouble understanding TrackedSymbols

While developing a relatively complex demonstration for Manipulate I encountered the problem that my output was unintentionally self-updating in an endless loop. ...
5
votes
1answer
183 views

DynamicModule issues with Refresh, double evaluation, and CDF Player preview

I am in the middle of making a CDF for a calculation of many random variables. I've gone with DynamicModule and have read the documentation plus these posts: 32294 ...
9
votes
2answers
168 views

Dynamic cells after Kernel restart/quit:

After quitting the kernel only one Dynamic cell fires. And it does not matter how many are there. ...
0
votes
1answer
45 views

How can I make a RadioButtonBar that randomizes the choices each time a notebook is opened?

I have the following function for making a RadioButtonBar with randomized choices. The code is ...
2
votes
2answers
203 views

Manipulate with multiple locators [closed]

How can I work with tables/lists of Locators under manipulate? Note this is very similar to this question: http://mathematica.stackexchange.com/a/51956/2079 The ...
0
votes
2answers
65 views

MousePosition and While loop Control, maybe Dynamic in While statement?

I would like to write a simple code that samples mouse position as frequently as the system can handle (with minimum dt) starting when the mouse position leaves a region and ending when the mouse ...
9
votes
1answer
120 views

How to synchronize the display of dynamic objects?

I was looking at this question, which asks to keep the orientation of some 3D graphics objects constant (relative to the viewer) while rotating the rest with the mouse. I thought that maybe the ...
0
votes
0answers
30 views

How to use ScheduleTask in a dynamic module? [duplicate]

I have a little timer widget that times two separate tasks: It is simple enough, but I can't see why it's not working. Am I not understanding the connection between ScheduleTasks and Dynamics? ...
4
votes
0answers
70 views

What is the purpose of Refresh? [duplicate]

I never quite understood the point of Refresh. Why would I do this: Dynamic[Refresh[DateString[], UpdateInterval -> 1]] when it is the same as ...
4
votes
1answer
70 views

How to stop a Dynamic[] in one notebook from hurting performance in another?

I have two notebooks open, one has a dynamic expression running (a simple clock) ...
4
votes
1answer
87 views

Automatically assign Variablenames to multiple checkboxes

I want to implement the option to import data from Excel and then the ability to trim this data in order to fit the needs. The import from Excel: (source) ...
4
votes
1answer
139 views

How to restart a Clock

The code below is to demonstrate color afterimages. The user chooses a color, fixates the changing number at the center until it reach 30 (seconds), then manually switches to white to observer the ...
0
votes
1answer
46 views

How do I get the bounds of my Slider to correspond to the current length of a string entered in another control?

I have a text entry control in a Manipulate that I index into the value of using the value of a Slider control. This works as ...
0
votes
1answer
55 views

Why won't Select work on my Dynamic values?

Why won't Select work on my list of Dynamic values? For example if I have some Dynamic ...
0
votes
1answer
86 views

Calling dynamic functions multiple times

I have a large number of functions which I am combining into packages and will call those functions via a palette. I then use those functions in a notebook and may need to call them several times. The ...
5
votes
1answer
85 views

Using a progress bar in a functional expression

If we have a procedural construct like a Do loop or Table, it is straightforward to make a progress bar to indicate the percent ...
2
votes
2answers
97 views

Dynamic updating of Slot number [duplicate]

I want to change the slot number inside Manipulate[]. Here is a minimal example which does not work: ...
8
votes
2answers
377 views

Palette button with progress bar

Let's say you have a palette with a button that has to do some time-consuming task when clicked: ...
1
vote
1answer
70 views

How do you hide/show a dynamic element in a list?

Here is the simplified version of the problem: THIS: {1,2,##&[],4,5} RETURNS: {1,2,4,5} ...
4
votes
1answer
110 views

Unwanted interaction between instances of a Manipulate function

The function trajectory below is defined in terms of Manipulate and calls the auxiliary function ...
1
vote
1answer
151 views

Interfaces: Importing files, processing them and exporting the results

We have a simple interface with two import file buttons, one field to enter a number $x$, one field to enter a file export name, and one 'Run' button. The mathematical operation when hitting 'Run' ...
1
vote
1answer
67 views

How to prevent automatic simplification in InputField?

Here is a basic example: {InputField[Dynamic[x]], Dynamic[x]} This code generates an input box with and dynamic display. What is disturbing me is that when ...
5
votes
2answers
170 views

Button that starts an evaluation which is monitored with a progress indicator

I have a DynamicModule in which I which I wish to start an operation (actually import files) with a button. I would like to monitor the progress with a ...
2
votes
1answer
189 views

Dynamic importing of json file is not refreshing

Running Dynamic[Refresh[Import["foo.json"], UpdateInterval->1]] or json := Import["foo.json"] then ...
2
votes
1answer
191 views

How do I dynamically construct a string from a variable number of 'PopupMenu's in 'Manipulate'?

I have a string with a variable length, determined by the value of a SetterBar and whose characters are determined by a corresponding number of ...
7
votes
2answers
512 views

Click in a vector plot to plot several solutions of a system of differential equations

I am aware of the Locator button and I am aware of the Equation Trekker package, but they are not what I want to use. Here is what I specifically want to know how to do, if possible. Consider the ...
2
votes
1answer
77 views

Dynamic ViewPoint on notebook startup

(This is a follow-up question to the accepted answer found here.) I want to synchronize two 3D plots in a notebook by setting their ViewVertical and ...
0
votes
1answer
70 views

Adding a plot to a DynamicModule

How can I add a Plot or Plot3D to my DynamicModule (on the same panel) without having a negative impact on the original function? I tried different (for me) logical ways to add the Plot function, but ...
1
vote
2answers
404 views

how to use InputField function within the manipulate function

I am trying to make a demonstration that can take in a matrix and create a vector field. Currently I have the demonstration all functioning but to define the matrix it uses sliders. I know they cannot ...
13
votes
4answers
475 views

How to make a movie from a complex demonstration?

I have a complex Manipulate-based demonstration containing a few sliders and a Setterbar. I would like to make a movie out of it, avi, or whatever else. The ...
1
vote
1answer
124 views

Use StepMonitor and Dynamic to plot progress of FindMinimum

The obvious way of plotting the progress of FindMinimum fails with an error about things not being localizable: ...
0
votes
2answers
302 views

Not seeing plot of solution returned by NDSolve

I am having trouble with generating a parametric plot with the following code: ...
2
votes
2answers
148 views

Dynamic visualization of two histograms

I have two histograms histo1 and histo2: ...
1
vote
1answer
94 views

Dynamically Update both a HorizontalGauge range and the value

I'm developing a demonstration that allows students to explore the location of a point on a number line simultaneously at various scales. I'll show a very simplified version here to get to the nub of ...
0
votes
0answers
67 views

MMA 10.0.2 Windows x64 Crashes during Find Next/Previous

For the past few weeks, MMA has crashed over a dozen times. It only happens when I'm doing Find Next or Find Previous several times while searching through my notebook. Note that I have at least 2 ...
0
votes
0answers
85 views

Dynamically update a graphic object in Mathematica [duplicate]

I was trying to simulate a bouncing ball (with no gravity) in a unit box and I managed to come up with a solution: ...
1
vote
1answer
172 views

How do I utilize the dynamic input field function in the manipulate function? Can I use this functionality to import a .xls from an URL dynamically?

Im trying to get my program to import a .xls for manipulation, I need to import the .xls at an url location dynamically, I did have this at the beginning of my code: ...
0
votes
1answer
81 views

Interacting Dynamic Components within LocatorPane

I am attempting to create a dynamic contour plot of an ellipse with two locators as the foci within a locator pane. The following code has been implemented: ...
6
votes
2answers
218 views

There is an issue with Manipulate in which it updates its argument twice in V10

I have asked this question before (here) and I thought that the issue is only when moving the Notebook window. It appears that Manipulate is working in weird manner. ...
4
votes
1answer
93 views

While stops running in a Dynamicmodule

I made this: ...
3
votes
1answer
114 views

Dynamic Output during ParallelMap

I can't seem to figure out how to dynamically output a variable that is being used in a parallel evaluation. Below is an example function that demonstrates my problem. ...
2
votes
1answer
112 views

Pausing a dynamic display

I'm trying to display some graphs, which were defined with plot above this line of code. The parametric plot moves through all of the x values, the others are stationary. I would like the parametric ...
3
votes
1answer
168 views

Animated moving dot

This question came about because of my failure to implement an answer to this previous question. My idea was that an answer could be written using aClickPane and an<...