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

learn more… | top users | synonyms

5
votes
2answers
280 views

How to dynamically update Locator[] constraints?

I need to visualize Menelaus' theorem for a triangle with moving locators for each of six points. So the vertexes of the triangle can move in any possible way, and the three points on the sides of the ...
4
votes
2answers
278 views

How can I change a Slider's appearance?

I am using Mathematica 9.0 and Windows 7. I want to create a Slider that looks like the following: I tried the following: ...
6
votes
3answers
424 views

How to use custom Dynamic inside Manipulate

I was wondering if it is possible to use a custom Dynamic[var, function] inside a Manipulate. The reason for the need is this: ...
17
votes
3answers
451 views

Using Refresh[..] with TrackedSymbols

This is a very basic question, but I don't understand the following behavior. The usage to Refresh reads represents an object whose value in a Dynamic should be ...
3
votes
1answer
146 views

Alternative updating of a dynamic expression

I am looking for a solution to selectively update a dynamic expression expr which is dependent on multiple control variables ...
13
votes
1answer
351 views

How do I stop my joystick from rotating a 3D graphic?

I am trying to use Mathematica to illustrate mixed strategies in Game Theory. I want my students to be able to use common joysticks as controllers. What I find, however, is that in addition to doing ...
11
votes
1answer
194 views

Time range selector à la InteractiveTradingChart

I have time series data and I would like to interactively select a part of it. This problem is beautifully solved in the lower part of the InteractiveTradingChart command: I would like to be able ...
3
votes
2answers
243 views

In a Manipulate[], control timing of Autorun

I've made a gauge like instrument that will get used to prompt someone to maintain rhythmic breathing patterns during heart/brain coherence training. ...
4
votes
1answer
272 views

How to force Pane to always scroll to end of content? [duplicate]

Mathematica seems to know about the actual end of content position in a Pane if given large enough (but not too large$^1$) initial position value. Here, the ...
0
votes
2answers
173 views

Why does ; suppress Dynamic output? [duplicate]

Dynamic[x=7]; does not make x dynamic! But Dynamic[x=7;] makes ...
11
votes
2answers
402 views

Soft-Match String Comparison

I have a list of names in which I would like to check for duplicates. However, within the list, the duplicates may not show up as exact duplicates of each other - for instance, ...
13
votes
4answers
481 views

Is it possible to select outliers on a graph and determine the index of the outliers?

I have a large data set of experimental data for which I have determined a theoretical fit. However, for some of the experimental data I took, there was systematic error, leading to the data deviating ...
0
votes
1answer
129 views

TabView resets to default when selecting data using Control object

I have 3 drop down boxes on one of the tabs in my TabView. Two of the drop down boxes results are used in a Select statement to ...
10
votes
7answers
632 views

How to dynamically toggle curves on/off in a crowded Plot?

When multiple curves appear in a single plot, it is useful to interactively turn certain curves on or off to visually compare smaller numbers of curves. It is trivial to put a quick dynamic together, ...
5
votes
2answers
189 views

How to make DynamicModule work without an extra ENTER

I've been trying to learn more about DynamicModule (I do not use them, as I used Manipulate all the time). After some time ...
3
votes
2answers
240 views

Why does the syntax highlighter color a local symbol red inside DynamicModule?

I am adding a Module inside DynamicModule here is an example (thanks to @rm-rf for this simple example) ...
0
votes
0answers
48 views

how to interactively select points inside certain region in a plot [duplicate]

Very often I encounter a situation that I want to select some points inside certain areas of a plot. For example, ...
3
votes
1answer
321 views

System Dialog Input with Button

I am trying to create a button that uses SystemDialogInput["FileOpen"] to browse for a file and assigns the file name to a variable. For example: ...
19
votes
2answers
555 views

Dynamically splitting Disks with Mouseover

I've recently stumbled across this site: Koalas to the Max, and the first thought that came to my mind was "I want to recreate this with Mathematica". As a first step I tried to create a ...
10
votes
2answers
483 views

Dynamic graphics are less responsive inside a Manipulate

I have some code which displays a GraphPlot and allows the user to click on any vertex in the graph to display some information about that vertex in a popup window. ...
117
votes
1answer
22k views

Mathematica Minecraft

Some time ago I asked myself: with all these great graphics and interactive capabilities of Mathematica, what kinds of 3D games can be implemented in it? And the answer which came to mind is ...
1
vote
1answer
230 views

EventHandler {“MouseDown”, 1} with PassEventsDown -> True not working as expected

I want my EventHandler to respond only to left mouse clicks and pass the right mouse click to the built in event handler. I have tried ...
0
votes
1answer
167 views

Cell output controlled by CellFrameLabel Checkbox?

The following generates a Cell that returns the state of the checkbox when evaluated: ...
0
votes
1answer
133 views

Can't see dynamic updating when my function is evaluated inside Dynamic [duplicate]

I defined a function, solve, with a free variable n, which changes while solve is running. Therefore, evaluating ...
2
votes
1answer
264 views

Resetting an animation with a custom button

I have the following code, which accepts a function via an InputField, and then gradually draws that function in a Plot using ...
18
votes
4answers
386 views

How to Initiate a queued evaluation from a Dynamic GUI without using a Button

I have a Dynamic-based GUI, and one part of it will kick off a calculation that could take longer than the default 5-second dynamic timeout. I know that ...
4
votes
2answers
573 views

Moving From Dynamic Module to Manipulate

In trying to implement Vitaly's suggestion about how to take control of Locator events, I have been able to make headway using ...
33
votes
2answers
962 views

Documentation searches hang frequently: Anyone else dealing with this?

I've been struggling with a number of hangs, dynamic timeouts, and outright crashes when using the search/documentation center in version 9. I've tried uninstalling/reinstalling and clearing ...
0
votes
1answer
386 views

Calculating orbital period for the logistical map [closed]

I have the following MatLab code ...
5
votes
1answer
280 views

Function that evaluates in notebook does not evaluate in CDF

I am trying to access the values of a dynamic value outside function package. Within the function package, the function is defined under the Dynamic module option. There is an error with this. I ...
5
votes
3answers
350 views

Interpolation with boundary conditions

I'm working on a sales projection, trying to create some flexibility in handle the forecast using locators. The toy code is something like this: ...
10
votes
2answers
218 views

Difference between action of a Slider and a HorizontalGauge

First time posting. I am working on creating some interactive materials for the engineering classes that I teach and have run into an issue that I cannot puzzle out. I am using a slider to allow for a ...
0
votes
0answers
69 views

Trying to access element of a matrix [duplicate]

Possible Duplicate: Question about MapThread and Dynamic I'm trying to extract element of a matrix. Let's suppose that the matrix is ...
3
votes
2answers
325 views

Dynamic matrix multiplication

I have the following problem: I want to multiply two matrices and sum them to another matrix C. A.B+ 2B Easy! The matrix A varies as a function of three inputs a,b and c. The second matrix, B, is a ...
0
votes
1answer
68 views

How can I seperate specific elements from the list? [duplicate]

Possible Duplicate: Question about MapThread and Dynamic I write a function name as inputFieldsList and it returns both ...
5
votes
1answer
142 views

How to make MousePosition more reliable

This takes a little patience to reproduce, but I got a screenshot of it in version 9 on Mac OS X 10.7.5: With a small Graphics object, it occasionally happens that ...
5
votes
5answers
760 views

sliding a tangent line along a curve

I am confused by Dynamic. I am trying to slide a tangent line along a curve, without using DynamicModule, so that I can include ...
3
votes
1answer
108 views

In a DynamicModule, is it possible to use multiple EventHandler declarations? [duplicate]

Possible Duplicate: Wrapping EventHandler by Table I am running Mathematica 7. However, I am new to using Dynamic, ...
10
votes
1answer
1k views

How to work around Mathematica hanging when showing a large SparseArray?

Note: This is fixed in 9.0.1. In Mathematica 9, if I display any large SparseArray object in the default way (which looks something like ...
8
votes
5answers
524 views

How to save Manipulate bookmarks permanently?

I would like to save current Manipulate parameter values to load them again later. Bookmarks (previously discussed here and here) work fine until the cell is ...
-2
votes
1answer
242 views

How to extract value from dynamic list? [duplicate]

Possible Duplicate: How to extract the numerical value of a dynamical variable Dynamic wraps a list that I cannot extract values from I want to extract value from list dynamically,this is ...
3
votes
2answers
183 views

How can I align the labels of the buttons on a setter bar to the button centers?

I tried to align the labels on the buttons of a SetterBarto the button centers. This is my code: ...
16
votes
3answers
363 views

Creating a notebook that has cells of a certain style password protected

I am teaching students how to use Mathematica. I want to create a problem set that has cells with a certain style (probably Input or some new style that is a variant of Input) locked down so that the ...
15
votes
0answers
449 views

How to improve these WASD + mouse look 3D controls?

Insipred by this question and the corresponding answer I've written a code for full-screen exploration of 3D scenes using standard WASD and mouse look controls. Here it is. ...
0
votes
0answers
148 views

Using Control Objects with TabView [duplicate]

I have a number of different tabs on my 'dashboard'. Each tab has a few different Controls (drop down boxes) that the user makes selections with. These selections determine what is displayed on the ...
5
votes
1answer
181 views

Why does Dynamic output cause CPU usage when onscreen?

I write such a line in Mathematica: {Slider[Dynamic[s]], Dynamic[f[x_] := s*x]} After evaluation, the CPU immediately runs at full power. And if you scroll the ...
8
votes
5answers
404 views

Manipulate Exp[I θ]+b Exp[-I θ]

I've uploaded an image showing a demonstration I'd like to create, but I definitely need help. There is a lot of talent on this list, so maybe someone can help me get started learning how to add ...
2
votes
1answer
232 views

Dynamically updating interactive objects in Mathematica

Is it possible to create interactive code in Mathematica (via EventHandler[] or Manipulate[] perhaps) that continually updates some calculation based on external data in the time when no user input is ...
5
votes
2answers
362 views

Interactively select a row/column of a Grid

I need a simple way to display tabular data (preferably with Grid) and also be able to select a row or column of the table. I've tried different approaches, but I ...
4
votes
1answer
190 views

Dynamically link cell content in Mathematica?

Is it possible to dynamically link the content of two cells? For example, can I set up a Notebook with two text cells that display the same value, and if the user types in one the other updates, etc.? ...