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

learn more… | top users | synonyms

2
votes
3answers
32 views

Selection Limit on CheckboxBar

Is there an easy way to limit the number of selections in a CheckboxBar such that at any time you can choose only two options. I tried to use the "Enabled" option, but that grays out the whole ...
5
votes
2answers
49 views

Why ParallelEvaluate[x = 0; {$KernelID, Dynamic[x]}] returns {{1,x},{2,x}}?

I'd expect that ParallelEvaluate[x = 0; {$KernelID, Dynamic[x]}] returns {{1, 0}, {2, 0}}, and that if in a parallel ...
0
votes
0answers
43 views

Personal Reminder with Speak capability repeats multiple times

I am trying to create a personal reminder for myself using the Speak function in Mathematica hoping that the computer speaks the task only once at the designated time. However, I have found that the ...
7
votes
3answers
101 views

Prevent Dynamic from behaving dynamically until notebook evaluated

If a notebook containing a = {1, 2}; Dynamic[a[[2]]] (* 2 *) is executed, closed, and then opened in a new session, it yields along with the expected error ...
0
votes
0answers
37 views

Why doesn't Grid evaluate when I wrap all its arguments in Dynamic? [duplicate]

Here is a small program involving Dynamic: ...
1
vote
3answers
172 views

How to combine Tabview with Dynamic Graphic to change the colour of a polygon

How does one get TabView to specify the colour of the Polygon? How does one put a label on ...
1
vote
2answers
58 views

Dynamic Updating

I want to take some points, place them onto a graph and then use the locator pane. I then want to take the new locations that the user has moved the points too and remove the y coordinate and use just ...
1
vote
0answers
27 views

Using DynamicModule and Locator with an external Module [closed]

I wish to call an external Module, called PCA inside a DynamicModule. Essentially, this ...
3
votes
1answer
55 views

Custom Multi-Interval Slider

I'm trying to make a custom generalization of the Interval Slider - one with $n$ marks to describe $n-1$ intervals. This was my attempt, but it doesn't work - it just returns itself when run: ...
1
vote
1answer
49 views

Temporary/popup Output Progress Boxes

In recent versions of Mathematica, a number of functions have the feature that, while they are thinking (or, for example, loading data from Mathematica servers), they pop-up a little light-blue box ...
2
votes
1answer
44 views

How to abort evaluation when clicking CancelButton

If you run the following code you will notice that the evaluation continues in the following cells. I want to abort evolution if CancelButton is clicked. I tried ...
1
vote
1answer
71 views

Tooltip in Prolog and Epilog

I have a question concerning Tooltip. I got a ParametricPlot and included two pictures and a dynamic point. I try to use Tooltip for each of those 2 Objects. But it doesn't work. I am not quite sure, ...
3
votes
4answers
88 views

Working with ScheduledTasks inside DynamicModules

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

How to have an Input cell that doubles as an Output

Motivation / examples: on a spreadsheet environment, each cell doubles as input and output. If we click on it, it shows the input; if we hit Enter, it shows the output; on this answer, I tried to ...
7
votes
2answers
130 views

Panning with Mouse + Moving A Curve

I would like to be able to move any curve (for example f(x)=x, or g(x)=x^2) by mouse dragging the particular curve. I would like to keep the functionality I have for panning across the screen in ...
11
votes
1answer
190 views

How to see a code preview (in Experimental`Explore[] or related GUI)

I have been messing around with built in Experimental`Explore[] function. You can call the function in Mathematica yourself to see what it looks like. It is a GUI ...
10
votes
4answers
357 views

Panning with Mouse

This is related to the question i just asked here but not the same. How could i create a manipulate that lets me move the graph to any position i want by clicking and dragging anywhere. Here is an ...
6
votes
2answers
174 views

Dynamic plot with synchronization of real time

I want to do a dynamic plot with synchronization of real time, that is, I have a function, f[t], that is a function of time (seconds), so I want to see the curve changing not so fast or not so slow, ...
7
votes
2answers
190 views

Panning by moving Origin (0,0) with Mouse

Given a 10 by 10 grid like the one below and the axis origin somewhere on the grid, I would like to be able to place the mouse pointer at the axes origin (0,0), then press and hold the mouse button ...
13
votes
1answer
132 views

How to make a dynamic nested menu?

There is no dynamic controller that can represent a hierarchical menu structure: ActionMenu can only handle flat action lists. Thanks to Kuba, we know a lot about ...
11
votes
2answers
152 views

How to prevent Dynamic activity with colour swatches in V10+

Since V10 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 plot (in ...
5
votes
1answer
59 views

Change speed of rate of unit change in Trigger function

I am trying to build an interactive model but I am facing some problems. for example: ...
0
votes
0answers
19 views

Is it possible to use DefaultElement for structured Dynamic cell content?

I have an interactive grid for which I would like to be able to define a structured Dynamic DefaultElement. ...
5
votes
0answers
81 views

Manipulator reset bug

Bug introduced in 10.3 or earlier and persisting through 10.3.1 or later When the + opener is opened, two things happen: ...
2
votes
1answer
91 views

DateListPlot inside DynamicModule updates continuously

Can any one try this code and see if it is updating continuously without changing the controllers: ...
18
votes
1answer
230 views

What is the difference between Dynamic[x] and Dynamic[ h[x] ] for DynamicModule variables?

Bug introduced in 9.0 or earlier and persisting through 10.3.1 or later Why plain Dynamic[x] is less sensitive and less likely to automatically be updated than ...
2
votes
2answers
37 views

Specify only one jump direction of LocatorPane

Considering LocatorPane: LocatorPane[pts,back,{{xmin,ymin},{xmax,ymax},{dx,dy}}] Is there any way to specify only the jumps ...
2
votes
2answers
68 views

How to scope variables in Manipulate (for Autorun)

This question is connected with that one (and all other connected). The purpose is to make a demonstration that has a Dynamic part among controls (I'm aware that it is not recommended, but ...
1
vote
1answer
73 views

Fourier Series plot

I'm trying to plot partial sum of Fourier series. I've finally managed to make it work but there are several things I don't understand ...
0
votes
0answers
23 views

Dynamic Epicycles [duplicate]

The following code is meant to produce a dynamic graphic of epicycles. (I'm having A LOT of trouble copying my code into this editor so that it can be copied back to Mathematica and run, please let me ...
7
votes
4answers
256 views

Dynamic Epicycles

Thanks to all the thorough answers and comments, I've written the following code, which builds a variable number of epicycles. However, when I apply the formula ...
0
votes
1answer
66 views

How to solve a linear system inside Manipulate and use the result for Plot?

I typed a code for showing a plane and a line, and solve a system, but I can´t show the intersection, because I don´t know. Here is a minimal working example for understanding my problem ( the real ...
5
votes
1answer
62 views

How can I dynamically display a stream position?

If I create a stream, str = StringToStream["how can I dynamically display the stream position"]; Read[str, Word] "how" then, when I use, ...
1
vote
1answer
51 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: ...
1
vote
1answer
38 views

Showing updating message in Dynamic with UpdateInterval

I am creating an interface which needs to repeat an operation every few seconds. The operation itself is expensive but faster than the update interval of the interface. I would like to have some ...
2
votes
1answer
57 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
81 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
41 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
70 views
2
votes
2answers
85 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
244 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
93 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
60 views
3
votes
1answer
49 views

ListDensityPlot3D result in saved notebook doesn't show correctly

Consider this example in the documentation of ListDensityPlot3D: ...
2
votes
3answers
86 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
70 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
74 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 ...