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

learn more… | top users | synonyms

0
votes
0answers
25 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
28 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
99 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
105 views

Strange Manipulate behavior

Running the following code and pressing the play button under b will input -2147483648 in b. ...
1
vote
1answer
60 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
71 views
14
votes
2answers
366 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
48 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 ...
0
votes
1answer
55 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
122 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
266 views
15
votes
4answers
604 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
101 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
38 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
163 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
52 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
135 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
132 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
215 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 ...
0
votes
1answer
138 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. ...
2
votes
2answers
68 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
74 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
147 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: ...
5
votes
1answer
72 views

Blocking dialog with a blocking child dialog

Suppose I have a DialogInput, in which there is a Button. The Button can trigger another <...
6
votes
1answer
74 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 ...
2
votes
1answer
57 views

How can I make a clickable ArrayPlot that returns input?

I would like to create a dynamic ArrayPlot so that the rectangles, when clicked, provide the input. Can I use ArrayPlot for this?...
1
vote
1answer
25 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, ...
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 ...
2
votes
1answer
66 views
3
votes
1answer
67 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 ...
31
votes
4answers
1k views

Does Mathematica have a built-in date picker?

Does Mathematica have an interactive date input control that lets the user choose a date by browsing to a calendar view and returning the selected date as a date list? For example, something like the ...
10
votes
1answer
110 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 ...
5
votes
2answers
148 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
73 views

How to Operate on a Dynamic Dataset?

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

Operations on dynamic arrays [duplicate]

When I do a simple operation like this fib = Table[Fibonacci[i], {i, 15}] and then look to find the position of a certain value, everything works fine: ...
6
votes
2answers
249 views

How to program a click panel for chemical elements (like a periodic table)?

The command ColorData["Atoms", "Panel"] indicates RGBColors of atoms by clicking a panel. As I don't want to reinvent the ...
0
votes
0answers
30 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 ...
2
votes
2answers
94 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$ ...
1
vote
1answer
126 views
2
votes
1answer
61 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
1answer
158 views

Drawing dynamical trajectories diagram in Mathematica

I've a Boolean gene regulation system composed of vectors(corresponding to cellular phenotypes). Their components are binary numbers such as $\{1,0,0,1\}$. A vector can change its statement in ...
2
votes
1answer
87 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: ...
5
votes
1answer
124 views

Manipulator reset bug

Bug introduced in 10.3 or earlier, fixed in 10.4. When the + opener is opened, two things happen: ...
6
votes
1answer
151 views

Constrain Locator to specified region

How can I constrain the locator to stay within the region defined by RegionPlot? When the Locator remains within the region, <...
0
votes
0answers
50 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): ...
0
votes
0answers
24 views

Make an existing solution for monitoring parallel jobs robust against dying kernels

Is there any chance to make the solution by @David here http://mathematica.stackexchange.com/a/1562/21606 more robust in the following sense: In my case, some parallel kernels die regularly during ...