As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [dynamic]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
107 views

High performance fullscreen visualization of image sequence

What is the fastest way you can come up with to display an image sequence in fullscreen where each image in the sequence must be shown? Here is my attempt. Let's create a 1920x1080 image as this is a ...
Math Gaudium's user avatar
3 votes
1 answer
71 views

How do I import a file only when it is modified?

I am trying to create a Dynamic code that will Import the contents of file only if it has been modified. I tried the following ...
user13892's user avatar
  • 8,779
8 votes
1 answer
196 views

Where to place Dynamic in an expression?

I've just started playing around with dynamic elements and I am confused over where exactly I should be placing Dynamic[] in an expression. My reading of the related help is it should be around the ...
Ian Miller's user avatar
0 votes
0 answers
240 views

error "Kernel not responding to Dynamic Evaluation"

I have got error with large-scale Problems that needs a solution by LinearProgramming, I am working on TSP Problem and I write the Linear Formulation for this Problem (Note: I know that there is a ...
user81348's user avatar
5 votes
1 answer
242 views

Calligraphic Pen Signature Pane

This exchange about writing the infinity symbol using a calligraphic pen nib (https://mathematica.stackexchange.com/a/13376/43662) gave me an idea that is a bit steep for me to implement. The idea is ...
Nicholas G's user avatar
  • 1,911
2 votes
1 answer
56 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 ...
erez's user avatar
  • 297
4 votes
1 answer
150 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 ...
Atom's user avatar
  • 143
0 votes
1 answer
90 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 ...
Eric Hester's user avatar
4 votes
1 answer
75 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 ...
Just Some Old Man's user avatar
0 votes
0 answers
55 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 ...
J0ta's user avatar
  • 65
2 votes
2 answers
585 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 ...
user236343's user avatar
3 votes
1 answer
111 views

Dynamic TimelinePlot glitching out

Hi Dynamic Noob here :) I have written the following piece of code: ...
user13892's user avatar
  • 8,779
1 vote
1 answer
76 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 (...
Craig Carter's user avatar
  • 3,617
0 votes
0 answers
94 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 ...
Just Some Old Man's user avatar
1 vote
0 answers
127 views

Lyapunov Exponent question about LCE package [closed]

This code gives result as given below on my computer ...
user84456's user avatar
  • 1,262
3 votes
2 answers
156 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: ...
Andrés Morales's user avatar
1 vote
2 answers
79 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 ...
Jocelyn Minini's user avatar
2 votes
5 answers
197 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 &...
Tom De Vries's user avatar
  • 3,718
4 votes
1 answer
99 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 ...
AccidentalTaylorExpansion's user avatar
1 vote
1 answer
76 views

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

I am displaying a progress bar in my notebook like this: ...
Adalbert Hanßen's user avatar
2 votes
1 answer
102 views

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

I make a progress indicator like this: ...
Adalbert Hanßen's user avatar
6 votes
2 answers
951 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: ...
martin's user avatar
  • 8,332
2 votes
0 answers
116 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 ...
Rocky the Owl's user avatar
0 votes
1 answer
96 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: ...
Gilbert's user avatar
  • 103
1 vote
1 answer
44 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 ...
Red Banana's user avatar
  • 5,111
5 votes
1 answer
86 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: ...
Adalbert Hanßen's user avatar
0 votes
0 answers
101 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: ...
lxndr's user avatar
  • 135
2 votes
1 answer
90 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: ...
isaac5122's user avatar
  • 767
14 votes
1 answer
220 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 ...
István Zachar's user avatar
4 votes
1 answer
195 views

What's the correct action for pressing a key?

Consider the following code: ...
user3257842's user avatar
3 votes
1 answer
81 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. ...
E. Schiesser's user avatar
2 votes
0 answers
32 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....
E. Schiesser's user avatar
0 votes
1 answer
106 views

Matching a Dynamic Argument Pattern

times is a list of times i.e. matching {{hour_, min_, sec_Real}..}. I want to call ...
RobertNathaniel's user avatar
1 vote
1 answer
124 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. ...
TobiR's user avatar
  • 232
15 votes
3 answers
694 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....
Vitaliy Kaurov's user avatar
1 vote
2 answers
145 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 ...
Peter Burbery's user avatar
1 vote
0 answers
48 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 ...
Alberto Sierraalta's user avatar
3 votes
2 answers
176 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 ...
sam wolfe's user avatar
  • 4,233
0 votes
1 answer
518 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. ...
dtn's user avatar
  • 2,344
3 votes
2 answers
126 views

How do you make two interactive sliders dependent on eachother?

I have this code. Definition of q is: ...
Victor Nielsen's user avatar
2 votes
0 answers
97 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/...
licheng's user avatar
  • 1,617
3 votes
2 answers
114 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 ...
user2286339's user avatar
2 votes
0 answers
46 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 ...
Melissa's user avatar
  • 21
1 vote
0 answers
71 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). ...
Niki's user avatar
  • 910
1 vote
1 answer
83 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. ...
Jules Manson's user avatar
  • 2,347
0 votes
0 answers
69 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 ...
sined's user avatar
  • 573
4 votes
1 answer
111 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 ...
Timevortex's user avatar
2 votes
1 answer
104 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 ...
BlackHat18's user avatar
2 votes
2 answers
141 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: ...
jabberwocky's user avatar
4 votes
2 answers
118 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 ...
Tim's user avatar
  • 115

1
2
3 4 5
29