# Questions tagged [dynamic]

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

1,360 questions
Filter by
Sorted by
Tagged with
47 views

### Use PopupMenu to choose a treatment

I have a list of treatments: treatmentsNames={"walk","run","fly","swim","dream"} I want to use this list to ...
67 views

### How to add to a dynamic variable?

Why can't I add to the dynamic variable z below? z = 1; Dynamic[z] + 1 returns 1+1 and not ...
75 views

### Two locators in separate plots using Manipulate

I want to create two figures, side by side, each with an independent Locator. I want to do this using Manipulate, because I can easily use information from each Locator in both plots. This answer did ...
64 views

### Making Tooltips Work with Buttons in 3D Plots

I am trying to get buttons to work simultaneously with tooltips in 3D plots. Button has a Tooltip option, but it doesn't seem to ...
50 views

### Algorithm consisting of modules returning multiple errors

I'm trying to write a genetic algorithm that will take a list of lists of reals in interval [0,1], my "starting population", "score" them according to a fitness function, append ...
542 views

### How to visualize the circle-triangle-probability problem

This 3b1b video talks about the following problem: given 3 random points on a circle, what is the probability that the triangle whose vertices are those points contains the center of the circle. To ...
65 views

### Dynamic TimelinePlot glitching out

Hi Dynamic Noob here :) I have written the following piece of code: ...
1 vote
55 views

### Using an Association as a Manipulate variable?

I would like to use an association in a Manipulate or a DynamicModule. Specifically, I'd like to click to change the Values of a list of Keys of an Association. Here is some non-working code that (...
92 views

### Possible Bug: Why does ListLinePlot3D not work with Dynamic here? [duplicate]

Why are the errors below thrown? They are very strange and seem to be incorrect. Error 1 ListLinePlot3D[Map[Dynamic, {{1, 2}, {1, 3}}, {2}]] Error 2 ...
1 vote
79 views

### Lyapunov Exponent question about LCE package [closed]

This code gives result as given below on my computer ...
113 views

### Selecting Plot for Locator

Assume I have a manipulate with two graphics/plots as outputs. One of my parameters is a locator. How can I select in which of the plots the locator appears? Let's say I have the output given by this: ...
1 vote
71 views

### InputField : only integer or list of integers in a specific range

I'm making a dynamic structure which reads some output from a FEM program (node results). I'd like an inputfield in which I specify the number(s) of the nodes I am interested in. The value of the ...
172 views

### How to toggle graphics in a ClickPane

I am trying to make a simple hundred chart with squares that will toggle on and off when clicked. I have a start, I can click to fill a square, but have no idea how to click on a filled square and &...
69 views

### Manipulate slider in awkward spot

I'm using Mathematica 12.3 and in this version sliders are placed really awkwardly: They are placed to the side instead of on top which makes them take up huge amounts of space. I believe in old ...
1 vote
55 views

### How can I temporarily pause Dynamic expressions while external programs are called?

I am displaying a progress bar in my notebook like this: ...
62 views

### How can i selectively delete a dynamic output cell (e.g. from a progress bar)?

I make a progress indicator like this: ...
838 views

### Making a Mathematica version of Wordle interactive

Just as a diversion, I'd like to create an interactive Mathematica version of Wordle. As a sketch I have the following: ...
68 views

### How to calculate index of dynamical system in Mathematica?

I am brand new to Mathematica, so apologies if this is an obvious question. Question: How to calculate the index of a dynamical system? (from index theory; see here) Example: Let us say we have a ...
39 views

### Dynamically updating only the Manipulate local variable

Say I have an array of data arrays, assigned to a temporary variable dat, and I'd like to switch between plots of the arrays using Manipulate. For example: ...
1 vote
41 views

### Using dynamic in CellPrint/Cell to get an "Item"?

When using stuff like: CellPrint[Cell["Z/" <> ToString[Prime[n]] <> "Z", "Item"]] How can I use dynamic functionality in ...
77 views

### How can I separate expressions in Module without suppressing output?

I want to show a progress indicator while statements in a Module are processed. Outside a Module this ca be done like this: ...
42 views

### Get current integral value in NIntegrate's EvaluationMonitor

Is it possible to display the current evaluation result while NIntegrate[] is running? Something like this: ...
75 views

### Creating A New List Using List Picker

I'm attempting to create a new list using ListPicker[] to select elements from a list instead of: ...
32 views

### Pokemon ELO rating with wolframscript

I would like to implement a Pokemon ELO system that my friends that don't have Mathematica installed could use as well via Wolframscript. The application would work as follows: You run a script ./...
204 views

### How to create a general AttachedCell toolbar?

For example, when an image is displayed in the frontend, the image suggestion toolbar, which is an AttachedCell, pops up: It can can be found here, among other ...
185 views

### What's the correct action for pressing a key?

Consider the following code: ...
74 views

### How to properly initialize a list variable that is dynamically updated?

The below example works to initialize the Gauge, but it does not initialize sf until we interact with the gauge. ...
27 views

### How can I combine Dynamic plots saved in named variables inside a DynamicModule?

I am creating a few separate plots that I want to be updated dynamically. I want to combine the plots so they are a single plot. Normally, I would use Show for this....
101 views

### Matching a Dynamic Argument Pattern

times is a list of times i.e. matching {{hour_, min_, sec_Real}..}. I want to call ...
1 vote
86 views

### Rotate the label when rotating the output image with graphics3D

I am interested in drawing a labelled dashed line through points p1 and p2 with Graphics3D. ...
502 views

### Animated bar chart race, a popular data visualization

Recently I see more and more data-viz called "Animated bar chart race". Some random examples, and note, how smoothly and organically everything changes in these videos.: https://flourish....
1 vote
98 views

### How to make an interactive calculator for any mathematical relation? [closed]

I am wondering if there is a way to make a calculator for any relation that is interactive. First, I choose a relation with some variables in it. The user will input a value for all of the variables ...
1 vote
46 views

### Help me understand a part of this code (using Clock) [closed]

I'm a begginer in Mathematica and I need help understanding a part of some code that I took and adapt from another question in this forum. The code is to animate one by one a list of points (with x,y ...
141 views

### Making a list of variables

Consider the following code, which give a Manipulate object that returns the "total" of a certain variable var 1 ...
204 views

### Equation of motion through the Lagrangian with Lagrange multipliers

I ask for advice, I'm a little confused. I have such a Lagrangian. $L=\frac{1}{2}m(\dot{x}^2+\dot{y}^2)-\lambda(2x^2+3y^2-1^2)$ Here $\lambda(2x^2+3y^2-1^2)$ is the constraint on the phase variables. ...
79 views

### How do you make two interactive sliders dependent on eachother?

I have this code. Definition of q is: ...
90 views

### Use the mouse to pinch the plasticine

Very roughly speaking, a topological space is a geometric object, and the homeomorphism is a continuous stretching and bending of the object into a new shape. (https://en.wikipedia.org/wiki/...
96 views

### IntervalSlider inside Manipulate

I try to implement a Manipulate control to draw a partial circle. For now, I have a ParametricPlot with fixed lower and upper ...
39 views

### Saving Dynamic Output when Closing [closed]

I am using Dynamic to create a graph that continuously updates during a simulation. This allows my students to visually (1) confirm that the simulation is working and (2) to judge when the simulation ...
1 vote
45 views

### How to export current state of a dynamic variable to Excel

I have a table with column headers and data. (The original table is much longer than the example is use to explain my problem here). ...
1 vote
72 views

### Dynamic influenced by a countdown Clock ignores actions in second argument

I stripped a Dynamic down to its bare essentials. Dynamic doesn't execute any of the functions asked for in second argument. ...
58 views

### Abort dynamics error

I am encountering a problem when I use the function Manipulate. Even when I run the simple code f[a_,x_]:=a*x Manipulate[Plot[f[a,x],{x,-1,1}],{a,1,2}] I obtain I ...
101 views

### Disabling an individual button in a SetterBar

I'm trying to create a set of SetterBar within my DynamicModule, but I want to have it so that an individual button gets ...
75 views

### Define variables dynamically to compute a function

Let's say I have defined a function $W(p, q)$, where $p$ and $q$ are integers between (and including) $0$ and $2$ and the function takes me to a real number. Upon an input $n$, where $n$ is a positive ...
103 views

### DynamicModule & Manipulate Plot

I tried to write a convenience wrapper around Manipulate for easier plotting. However I failed already at the very first step. Consider the following example: ...
80 views

### Why does Manipulate update without change of TrackedSymbols?

Below you find a very minimal version of a code, where the Manipulate keeps updating (run is constantly printed) despite the Tracked symbol not being changed. Funny enough, this only happens if d1 and ...
59 views

### How to create an Interactive Solver using either Dynamic, Dynamic Module, Manipulate, Form Page, and Form Function?

I am working on creating interactive solvers for laws in physics where first select a variable to solve for such as displacement/length/position, density, mass, torque and electricity and then enter ...
40 views

### In DynamicModule, InputField does not display the update when its variable updates through PopupWindow. How to fix this?

Here's a minimal example: ...
1 vote