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

learn more… | top users | synonyms

10
votes
3answers
421 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
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 ...
0
votes
0answers
52 views

How to implement multiple EventHandlers? [duplicate]

n00b Mathematica user here. I wrote this code: ...
47
votes
2answers
723 views

Guidelines for planning custom GUI in Mathematica

This post is here to save your time during GUI development in Mathematica. And one way to do this is to know where limits are and to be aware of features that are awaiting. Background Usually I don'...
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[]). ...
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 ...
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 ...
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 ...
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 ...
12
votes
1answer
673 views

InputField does not always update continuously with ContinuousAction

By fiddling with Vitaliy's solution for a small GUI, I've come accross this particular behaviour of InputField: ...
8
votes
1answer
97 views

What is the equivalent of $ModuleNumber for DynamicModule

Mathematica provides access to $ModuleNumber which can be enormously useful. Unfortunately I can't find the equivalent for ...
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 ...
4
votes
4answers
120 views

Working with ScheduledTasks inside DynamicModules

I have a question - is it possible to run ScheduleTask[] inside DynamicModule[]? What I have tried so far: ...
0
votes
1answer
148 views

Crash when dynamically updating ListLinePlot

I was trying to solve a wave problem using numerical methods. The code below crashes each time I run it on Windows with version 10.2. ...
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 ...
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 ...
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 ...
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 (...
5
votes
1answer
336 views

Front-end glitch when interacting with dynamic content

This is now bugging me too much to ignore it anymore. When I interact with a notebook that has dynamic content, for example moving a slider, Mathematica regularly brings other open notebook windows to ...
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 ...
5
votes
1answer
81 views

Blocking dialog with a blocking child dialog

Suppose I have a DialogInput, in which there is a Button. The Button can trigger another <...
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
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 ...
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,...
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
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 ...
1
vote
3answers
78 views

Dynamic update with manipulate is buggy

Try to reproduce the following code: ...
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. ...
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: ...
5
votes
1answer
124 views

How to avoid the pink background in GUIs without using Quiet

GUIs may generate warnings while internal evaluations are processed. In this example I intentionally introduce a line that will generate a warning. Warnings are useful, so I don't want to quiet them ...
8
votes
4answers
267 views
16
votes
4answers
614 views

Autocomplete InputField

Is there a way to define a InputField that displays a list of options as you type? More specifically I'm looking for an ...
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 ...
14
votes
2answers
202 views

How to prevent Dynamic activity with color swatches in V10+

Since version 10, if I type e.g. an RGBColor or simply a named color, a dynamic colour swatch is returned. Same goes for when you e.g. extract colours from a ...
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: ...
3
votes
2answers
165 views

Moving a locator based on the movement of another

My problem is: I want two Locators to simulate a vector in the following sense: The first Locator is the base and the second ...
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 ...
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 ...
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 ...
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: ...
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 ...
2
votes
1answer
103 views

DateListPlot inside DynamicModule updates continuously

bug fixed in 10.4.1 Can any one try this code and see if it is updating continuously without changing the controllers: ...