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

learn more… | top users | synonyms

0
votes
0answers
52 views

How to implement multiple EventHandlers? [duplicate]

n00b Mathematica user here. I wrote this code: ...
1
vote
1answer
69 views

Dynamic and TabView mayhem

What I'm trying to do is damn simple but it seems like Mathematica is extremely ill-designed for this ... Here is a very simplified form of my code to show the basic idea. I have a variable number of ...
5
votes
1answer
119 views

switch between automatic and manual updating

I have a plot with interactive controls. I'd like to give the user the option between having the plot automatically update (when the plot's parameters are changed with the slider) and having the ...
3
votes
0answers
25 views

Dynamic graphics appears first with wrong background [duplicate]

This is one of those annoying things that you put aside for years before making a post of it. Put a dynamic Graphics into a gui object (...
1
vote
1answer
68 views

Dynamic Plot of non-linear function within DynamicModule yields dynamically changing constant line instead of expected behavior

I'm having a problem with DynamicModule; the code below produces a plot with a line that changes value, based on the slider positions of the parameters, which is very nearly what I want; I would ...
10
votes
1answer
2k views

Programming the fiver game

Obviously, even if I ask a lot of question I am, obviously, still a dummy!!!! I want to program the fiver game. It's a very simple game played solitary on a $5 \times 5$ the rule is elementary : if ...
5
votes
1answer
94 views

Synchronizing code in Dynamics with other procedures

I have huge code and some problem. I don't know how to make example. I'm afraid I can't make good SMALL example to demonstrate you the problem. So I'll try to explain. Maybe somebody know about such ...
1
vote
1answer
58 views

How to have a file Import Button in Mathematica

so I've been having trouble getting a dynamic import button to work inside of a manipulate. I have code that takes in a data set (in this case an excel sheet), and I got everything to work fine in the ...
0
votes
1answer
44 views

How to trigger an event whenever the variable controlled by an InputField is changed?

Consider an an InputField object of the form DynamicModule[{x = 0}, {InputField[Dynamic@x],Dynamic@stuffDependingOnx} ] ...
2
votes
3answers
131 views

Independent manipulate controls for part of list data

I have a graphic that consists of a ListPlot3D and a ListPointPlot3D. I want to only display part of the data for the second plot up to an nth index. That data is in ...
6
votes
1answer
110 views

Synchronizing Dynamics with EventActions ( and other preemptive evaluations)

I would like to make a simple "game": Display a dialog with a random letter, if the same letter is pressed on the keyboard, the display changes into a string ...
0
votes
2answers
36 views

Solve inside of InputField is not dynamic

On the 7th line, I have an InputField that I want to dynamically change as I change the input. It solves an equation that is later used to determine the change in y intercept in the graph. However, ...
1
vote
1answer
42 views

Have all the parts to my program, except implementing DynamicModule and InputField [closed]

I've posted before and I think (hopefully) I'm almost done. I want to make a program that models a cantilever bending on a box given parameters, like this: I calculated the parametric equations (...
0
votes
0answers
28 views

DynamicModule for sellecting filtered files in directory

I built simple dinamic module for selecting directory, and according to filter extension (jpg, jpeg) via toggle buttons, populating list variable selectedFiles and ...
1
vote
0answers
37 views

Dynamic fails to update after evaluating `Pause[]` within `Block` [duplicate]

When evaluating this, the final value of a is 0 as it should be, but Dynamic[a] shows a <...
0
votes
2answers
75 views

How does EventHandler work inside a Graphic

I've created an application with the User Interface being a Graphic with lines, polygons etc. The functionality I need is: to be able to place the objects anywhere in {x,y} coords of the Graphic. to ...
0
votes
2answers
47 views

value from a slider for further computations

I would like to know how to extract the value obtained with a slider for successive computation. For examle: ...
0
votes
1answer
39 views

Graphics3D plot of group of Vectors

I am trying to overlap 2 different Coordinate Systems (C1,C2). I want it to be visually pleasing but it is increasing the length of code I tried ...
0
votes
0answers
37 views

Easier way to input Dynamic matrix?

I've only been using MMA for a month, and I'm working on making interactive Linear Algebra examples that will be used online for students. Right now, for inputting numbers into a matrix, I've been ...
3
votes
0answers
56 views

High CPU load for dynamic classification

I encountered some issues with extremely high CPU load when I tried to classify live images (using Dynamic and CurrentImage[]). ...
1
vote
3answers
104 views

Refresh plot during heavy calculations

I have some heavy calculations with generates huge list of {x,y} points. I want to dynamically update plot during calculations. Or update it after calculations complete. I cant use simple Dynamic@Plot,...
1
vote
1answer
69 views

Creating a Dynamic Time Index Slider for List Animate Plot

I am trying to create an animation using ListPlot, which has worked, but I want to be able to see how time is changing (i.e. its dynamic value) as the animation runs. Here is my normal List Plot ...
4
votes
2answers
109 views

Strange Manipulate behavior

Running the following code and pressing the play button under b will input -2147483648 in b. ...
1
vote
3answers
78 views

Dynamic update with manipulate is buggy

Try to reproduce the following code: ...
0
votes
0answers
51 views

How to prevent updating of an assignment

I have the code you see below: For[ni = 1, ni < 3, ni++, ALLB[[ni, 1]] = LB[[1, 1]];]; This code is written in a main notebook, and I have another sub ...
1
vote
1answer
61 views

Dynamic input for Complex, Determinant output problems [duplicate]

I'm having trouble using Complex with Dynamic real and imaginary inputs. The inputs come from a matrix of popup menus: ...
16
votes
0answers
103 views

Inconsistent handling of Dynamic option values; intended, omission, or bug?

In answering Dynamic ClipPlanes calculated from current ViewPoint Kuba and I got into a brief exchange regarding how Option values wrapped in Dynamic should be ...
1
vote
0answers
40 views

How to tune Dynamic properly to accomplish this?

I'm making a words remembering program with Mathematica. I almost finished it but I need to implement a dynamics to make it more beautiful. Try the following code: ...
2
votes
0answers
53 views

Response to user interaction inside Manipulate [closed]

I'd like to create a Manipulate with custom objects in the control area (like a circuit diagram) that reacts to the user interacting with the manipulate controls (e....
8
votes
2answers
142 views

Dynamic ClipPlanes calculated from current ViewPoint

(This is a follow-up question to the answer found here.) I would like to define a clip plane dynamically from the current ViewPoint of my ...
2
votes
2answers
71 views

Dynamic locator: update to new position inside `Manipluate`

I'd like the locator to update to its new position when k is altered: ...
1
vote
1answer
80 views

Issue formulating RegionPlot3D to visualize RegionIntersection

Description I am looking to visualize gas cloud growth within custom modules. For demonstration purpose, it is assumed gas cloud takes a spherical shape whilst module is defined using a ...
9
votes
1answer
165 views

Clickable graph

Can someone help me to make a clickable graph? Graph[{1 -> 3, 2 -> 3, 3 -> 6, 4 -> 6, 1 -> 5, 5 -> 4, 6 -> 2}] I found that ...
6
votes
1answer
75 views

How-to generate a set of random points in a dynamic region

Description It probably has a simple fix but I can't seem to find a way. I am looking to generate a set of random points within a dynamic region. Each time a new type of region is selected, the ...
1
vote
1answer
27 views

'Contingent' user interface (DialogNotebook with PopupMenus that depend on previous PopupMenus)

I'm creating a user interface for data entry. It makes sense for the content of certain menu items to depend on the information that has been entered earlier on the form. In a trivial example, ...
13
votes
3answers
224 views

Internal DynamicModule steals scope of external DynamicModule

I have two dynamic objects, one nested in the other. Both have their own functions defined, as follows. I have simplified them to the point where they don't make much sense, but can still illustrate ...
3
votes
1answer
68 views

Dialog notebook with multiple popup menus

I'm trying to create a user interface in Mathematica; the user will enter specified information, it will be processed, and then data will be inserted into a MySQL database. The pieces work ...
2
votes
2answers
49 views

Dynamic stops when shorten section [duplicate]

When I shorten the sections so I can get the input (slider bar) and out put on the page, Dynamic no longer works. Dynamic only ...
5
votes
2answers
149 views

How-to ensure consistent legend when using PieChart?

Description: I would like to enforce consistent legend and style throughout dynamic PieChart evaluation. Problem: Based on current implementation, the color ...
3
votes
1answer
80 views

How to Operate on a Dynamic Dataset?

I cannot operate on the Dataset I am dynamically filtering. Minimal example follows. ...
10
votes
1answer
111 views

Evaluation leak from Dynamic in Button's action

a = 1; Button["Print", a++] Button["Print", Dynamic[a++]] Button["Print", Dynamic[a++];] Button["Print", {Dynamic[a++]}] Dynamic @ a The second ...
0
votes
0answers
40 views

How to plot eigenvalues as a function of parameters in a dynamic module?

I am trying to make a fancy interactive plot that shows how the eigenvalues of a matrix mat change under variation of parameters ...
1
vote
1answer
127 views

Animating two rotating circles

I have two circles: ...
2
votes
1answer
62 views

Using IF commands in a Dynamic Module

Is there a way to use a functional If command in a DynamicModule? I have a code which runs a car driving up a street using ...
3
votes
2answers
133 views

Clickable clock making sound

I have a moving clock Dynamic[Refresh[ClockGauge[], UpdateInterval -> 1]] which should be clickable. Program should make a sound when hand of a clock will ...
14
votes
2answers
379 views

Tips to move from functional programming to GUI-based applications

Even though this forum has some questions related to Mathematica programming tips I think that we still don't have specific help for those who want to learn to efficiently create GUIs in Mathematica. ...
2
votes
2answers
98 views

Dynamically sized $n\times n$ checkboxes corresponding to a matrix

I was wondering if it was possible to do to following: have an input field for an integer where you input the $n$ have an $n\times n$ matrix of checkboxes that would correspond to an $n\times n$ ...
2
votes
1answer
89 views

How can I get dynamic control over the domain of a contour plot? [closed]

I am trying to plot a specified contour of my function of two variables. I call ContourPlot with my function as follows: ...
0
votes
0answers
53 views

All Graphics3D commands crash

Recently updated from Mathematica 8.0 to 10.2 running on Windows 7 (8.0 was uninstalled before installing 10.2). Anytime a 3d graphics is rendered, the first rendering in a notebook is completely ...
0
votes
1answer
26 views

Displaying each element of a varying sized list one at a time [duplicate]

I am trying to take a user's input, which will determine as list of results. I would like to show that list to the user, one result at a time. Something like the following (which is broken): ...