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

learn more… | top users | synonyms

5
votes
2answers
45 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
1
vote
3answers
169 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
57 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 ...
0
votes
1answer
80 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
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 ...
8
votes
1answer
274 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 ...
1
vote
1answer
60 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, ...
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 ...
3
votes
4answers
87 views

Working with ScheduledTasks inside DynamicModules

I have a question - is it possible to run ScheduleTask[] inside DynamicModule[]? What I have tried so far: ...
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 ...
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 ...
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
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 ...
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, ...
4
votes
2answers
267 views

How to set the timeout of the preemptive link?

I apologize if this is a RTFM question, but I couldn't find this in the docs. How can I set the timeout of the preemptive link? For example: ...
13
votes
1answer
130 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 ...
93
votes
2answers
8k views

How to manipulate 2D plots?

When it comes to visual analysis, large datasets or data with intricate internal details often makes plotting in 2D useless, as the outcome is either just a fraction of the full dataset, or no details ...
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: ...
5
votes
1answer
58 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: ...
10
votes
1answer
199 views

Notebook's WindowSize interference with contents' Dynamic ImageSizes

Bug introduced in 8 or earlier and persists through 10.3.1 or later Consider the following MWE: ...
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. ...
9
votes
2answers
142 views

Dynamic cells after Kernel restart/quit:

After quitting the kernel only one Dynamic cell fires. And it does not matter how many are there. ...
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: ...
6
votes
1answer
94 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 ...
11
votes
7answers
948 views

How to dynamically toggle curves on/off in a crowded Plot?

When multiple curves appear in a single plot, it is useful to interactively turn certain curves on or off to visually compare smaller numbers of curves. It is trivial to put a quick dynamic together, ...
0
votes
1answer
87 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 ...
4
votes
2answers
105 views

Manipulate in modal mode

It is sometimes convenient to use Manipulate to set up global values which are to be used in the rest of the notebook. In such cases one can select and run the ...
4
votes
4answers
532 views

How to select interactively datasets to plot with Manipulate

I'm using Manipulate to visualize three datasets: Manipulate[ListPlot[WHAT -> what], {what, {dataset1, dataset2, dataset3}}] Now with this solution I can only ...
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. ...
11
votes
1answer
135 views

How can I make a stylesheet that counts subcells?

The example cells in the documentation each have count of the cells inside their section: ...
1
vote
2answers
331 views

TabView: Reset some dynamic variable on tab selection

Given a TabView panel like this one TabView[{ DynamicModule[{x = False}, {Checkbox[Dynamic[x]], Dynamic[x]}], "foo"}] I ...
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 ...
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 ...
2
votes
2answers
67 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
1answer
65 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 ...
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 ...
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: ...
6
votes
1answer
205 views

Dynamic and Refresh

If I am not mislead by my memory, in Mathematica 6 a function Refresh was introduced, having the options UpdateInterval and ...