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

learn more… | top users | synonyms

2
votes
1answer
59 views

DynamicModule endlessly updating unexpectedly

I've encountered an error using DynamicModule to show results of some numeric or symbolic solving algorythms (I've tried ...
0
votes
1answer
130 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
1answer
46 views

IntervalSlider MinIntervalSize dependent on another control

I would like to achieve the effect of the DynamicModule below using a Manipulate. Several of my attempts failed. I could not get MinIntervalSize to recognize the dynamic variable. Is is possible to ...
4
votes
1answer
75 views
2
votes
2answers
91 views

Issue with pure function when mapping dynamic content within graphics scope

What I am trying to achieve can be described using following code: vector = {{0, 0}, {1, 0}}; Graphics[Circle[#, 1] & /@ vector] In the above, a pure ...
14
votes
3answers
256 views

On making a graphical real-time memory usage monitor

I'd like to make a graphical version of Dynamic[Refresh[MemoryInUse[], UpdateInterval -> 1]] A naive implementation would be something like: ...
2
votes
1answer
101 views

Building a two-player game

I would like to make a MMA version of this game. Modifying @belisariusisforth's code from this answer, I get ...
1
vote
2answers
65 views
3
votes
1answer
57 views

ListDensityPlot3D result in saved notebook doesn't show correctly

Consider this example in the documentation of ListDensityPlot3D: ...
2
votes
3answers
104 views

ClickPane that shows or hides controls when clicked

I am trying to modify the parameters of a system by clicking on its graphics. I am using ClickPane with DialogInput. A code ...
5
votes
1answer
77 views

Why NotebookDynamicExpression freezes Mathematica on this particular application?

Why does this simple expression freezes Mathematica? (version 10.3.0, Windows 7 64) ...
3
votes
1answer
77 views

Evaluation of Dynamic suppressed by semicolon

Dynamic functionally of Mathematica it is really very confusing and I tried and spent a lot of time reading and reading but still not figuring it out comfortably. I ...
6
votes
2answers
97 views

How do Dynamic Attributes work?

Reading in the doc, it is mentioned in the example of Dynamic that this way of writing the code does not work: ...
3
votes
2answers
123 views

How to animate multiple sets of XY data

I have nine sets of data with $(x,y)$ coordinates that are the position of a particle. I can ListPlot the particle positions on a single plot, but, I want to ...
3
votes
1answer
63 views

Control with label doesn't work properly inside Manipulate

Consider the following example: Manipulate[{1}[[i]], {i, {1 -> "a"}}] Execute it and you'll get: The correct result will be displayed if you select ...
1
vote
1answer
51 views

How do I dynamically update “name” of Action Menu?

I have created an action menu that allows you to change the style of a cell. It works. However, I would like it to dynamically update the action menu "name". I can't get the name to refresh. ...
2
votes
2answers
88 views

Range of plot function does not accept Dynamic output [duplicate]

Below is some code to produce a Fourier series. I want to be able to adjust L to change not only the function, but also the plot limits. I am getting the error : ...
1
vote
1answer
101 views

Multiple interactive adjusters for multiple parameters including locator

I want to make a program that allows to vary multiple parameters via multiple adjusters. It may well be that this question has been answered already somewhere. However, I am pretty new to programming ...
0
votes
0answers
69 views

How to scope all variables in Manipulate (to upload Demonstration)? [duplicate]

I'm using the Manipulate structure of the simplified form below in order to make Wolfram Demonstration. ...
2
votes
0answers
78 views

Dynamic array in Mathematica like malloc in C++

I have a table to describe a crossroad. Each traffic line has it own Q(flow), V( speed) and direction. I'm saving data in array, which hardcoded (very simple code data = {{66, 55, 3}, {44, 33, 2}, ...
6
votes
1answer
100 views

Activity indicators for slow Dynamic expressions?

With Dynamic and gui-constructs like Popup I always have a problem: when an expression takes a while to evaluate the Dynamic ...
1
vote
1answer
45 views

Holding dynamic until all options are chosen for an interactive plot

I want to control the variables (and other options) used in a plot through a number of popup menus. As the plot takes a little time to be drawn, I want to be able to make a selection on each of the ...
4
votes
2answers
162 views

Why does CreatePalette break my code?

I wrote some code to monitor the tasks that I'm doing - looks like this: Now it works just fine, but as soon as I wrap it up in palette it dies: Nothing updates.... I know there must be an easy ...
1
vote
1answer
60 views

How to update plot with EventHandler without using Print

Consider the following code: ...
0
votes
0answers
39 views

Could not access a specific element of ConstantArray, why ? partw error [duplicate]

I could not access a specific element of ConstantArray, why ? The following is piece of my code: ...
6
votes
1answer
100 views

How can I change a Dynamic object's state when the kernel quits?

In a particular notebook, I've got a docked cell with a status readout that depends on a package I've written. It doesn't display properly before the package is loaded. The notebook has an ...
4
votes
1answer
371 views

mathematica does not evaluate without internet access? [closed]

I am watching the video Hands-on Start to Mathematica Basic Graphics and for about 15 minutes I was trying to evaluate $\frac{\sin x}{x}$ and each time I encountered errors like: The result can ...
6
votes
0answers
73 views

How to preview a list of images by sliding the mouse?

I'm trying to dynamically scrub over a list of images like in iphoto. Unfortunately, when the mouse moves from one side to the other, it's skipping frames which is confusing: When the mouse runs ...
2
votes
1answer
79 views

ListPlot dynamical problems [closed]

I have Manipulate, where there are FileNameSetter(to load file with data points) ...
6
votes
4answers
342 views

Plot[f,{x, xmin, xmax}], where xmax is not a const

I have a graph of the function, as in the picture. Function can be set manually, but after a certain value, it is 0. Could I find this value to put it instead of xmax=1 in Plot in order to avoid ...
1
vote
1answer
53 views

Interactions between windows & dynamically updating scrollbars

Consider the following code: ...
-2
votes
1answer
97 views

How to make a ProgressIndicator span inside a grid?

Setting ImageSize -> Full in the ProgressIndicator makes the indicator extend to fill up the width of the notebook. But I have one inside a grid, so how can I ...
1
vote
0answers
25 views

Why is there a lag in EmitMIDI and StopMIDI?

If I run: ...
2
votes
1answer
142 views
3
votes
0answers
30 views

InteractiveTradingChart not working inside Dynamic

I would like to have an interactive trading chart that updates by changing the input stock. But anytime a dynamic is wrapped around the function, it doesn't manage to initialize. Is there any way to ...
3
votes
2answers
51 views

How to get highlighted text from event

I want to do the following: Given a text in a Mathematica dynamic module "at runtime". If some text is selected with the cursor/mouse, after the mouse button release, get the selected text. Thank ...
2
votes
1answer
95 views

Dynamic update of displayed quantities on a Plot within manipulate

I'll admit that I only skimmed some other threads about this. They seem rather complicated in contrast to my simple problem. I have two lines in space defined by a two-by-two coefficient matrix. I ...
2
votes
1answer
117 views

How to keep Mouseover visible while control has focus/cursor?

I have a DateObject and InputField that I am using to collect an inputted date. Mouseover ...
5
votes
1answer
57 views

Dynamically highlighting elements sharing common properties

I want to make a table of elements such that when the cursor is over a target element, all other elements of the table sharing some specified common property with the target are highlighted (let's say ...
13
votes
1answer
88 views

How to service preemptive computations while running a LibraryLink function?

Cross-posted to Wolfram Community The following is from the comparison between WSTP (MathLink) and LibraryLink in the documentation: When the Wolfram Language is waiting for a WSTP application ...
3
votes
1answer
62 views

Extending Button's Method -> “Preemptive” 5 second timeout

This is an example from the documentation for Button : ...
1
vote
2answers
111 views

How to write a loop

I try to create a table which will describe traffic paths at a crossroads. Instead of using copy-paste repeatedly, I would like to write a loop. For example: ...
1
vote
2answers
61 views

Error Resulting from Placing a Dynamic Variable inside of Table

I want to create a list of values, True or False, and to update those values with a ...
4
votes
1answer
139 views
8
votes
1answer
715 views

The most simple Manipulate freeze the notebook on v10.1

I realize this won't be a particularly clear question. As I'm not able myself to find a pattern for the problem I'm talking about I won't be able to give enough informations to make it fully ...
0
votes
1answer
44 views

StringJoin Dynamic problem [duplicate]

My goal is to import a XML file from the site fueleconomy.gov to get a list of cars dependent on the year given as the user input . Here is the code: ...
0
votes
1answer
90 views

Loss of chart when exporting data in DynamicModule

Bug fixed in V 10.2 In DynamicModule, the result is to show a panel with a flowchart and a Piechart. But when I export the ...
9
votes
2answers
161 views

Passing an unevaluated part of an association to a function

I'm making a UI widget that controls sound volume on a speaker using a slider, e.g.: ...
6
votes
2answers
108 views

How do I maintain notebook state variables between front end/kernel sessions, if those variables are set programmatically rather than via UI widgets?

I need to give a notebook a few simple state variables (counters) that will be saved with the notebook, persist across kernel restarts, etc. From what I've read, using variables defined within a ...
0
votes
1answer
50 views