Questions tagged [dynamic]
Questions relating to the dynamic family of functions in Mathematica, such as Dynamic, DynamicModule and Manipulate.
1,448
questions
1
vote
1
answer
72
views
Speeding a Manipulate illustrating convolution
I'd like to illustrate the mathematical process of convolution ($f(x) \star g(x)$) with an interactive Manipulate, but the evaluation is far too slow for a class ...
1
vote
0
answers
12
views
ChannelObject::connfail Error
My Mathematica keeps deadlock in DynamicEvaluation and throws the following error upon Abort. How to stop this behavior?
...
1
vote
1
answer
53
views
Selecting regions from the screen to capture dynamically
I know that by using CurrentScreenImage with some coordinates that I can capture regions of my screen. I would like to be able to capture a rectangular region of my ...
2
votes
1
answer
67
views
Getting formula & graph from locatable points
My goal is to, firstly, get formula-I think Findformula function might be used- from locatable points(for example from 10 locatable points as below),and secondly,superimpose the graph of formula over ...
1
vote
1
answer
97
views
Make `Manipulate` work despite `Clear["Global`*"]`
What is the correct way to stop all my Manipulate cells from breaking every time I issue ClearAll["Global`*"] command?
...
2
votes
3
answers
163
views
How to maintain the input form of InputField?
I created a Manipulate with InputField:
...
5
votes
1
answer
69
views
How to most responsively manipulate time intervals in ParametricPlot?
I often met with the case where I want to show the past trajectory of a object. A way of demonstrating this is to plot the trajectory using ParametricPlot, and then ...
0
votes
0
answers
32
views
Help fixing dynamic graphics with multiple features
I'm trying to create a graph drawing widget, here are its basics that just allow you to create and drag vertices:
...
3
votes
1
answer
69
views
Locating points by selecting points
My goal is to locate points without using slide bars then average point is dynamically plotted. Could I select and locate a point directly without using the slider bar?(I could locate points using ...
2
votes
1
answer
183
views
Wolfram Mathematica and Arduino serial data capture not working Dynamic stream
This post is a continuation and modified version of an earlier post from few years ago.
Please help with the Dynamic function capturing data from a Serial stream from Arduino. I am not having luck ...
3
votes
2
answers
100
views
Correctly localize variables in Manipulate
I’m doing a little project for Wolfram Demonstration. When I create snapshots, i.e. paste several times Output cell of Manipulate, all of them updates simultaneously, if any control is changed.
I ...
3
votes
3
answers
177
views
How to launch a Manipulate (or a function that uses Manipulate) via a Button
(Mathematica v13.3)
This seems to do nothing when you click the resulting Button:
Button["Launch", Manipulate[pt, {pt, {-1, -1}, {1, 1}}]]
Setting ...
1
vote
1
answer
74
views
Unwanted reevaluation in Manipulate with RandomPointConfiguration
Here is a simple illustration of a problem I am encountering. I want to use RandomPointConfiguration inside Manipulate, but it ...
1
vote
1
answer
58
views
How to set the width of InputField in tables with dynamical content?
I have written the following code to generate the table that is shown below.
...
0
votes
2
answers
59
views
Using Dynamic string output inside Block
Inside a Block, I have (among other things) a string output that is updated during an internal for loop in the following (schematic) way:
...
1
vote
3
answers
103
views
Combine Dynamic[] and Manipulate[]
I'd like combine Dynamic and Manipulate, cause Manipulate required for Wolfram ...
3
votes
1
answer
93
views
Why do I need to use Dynamic in order for Plot to work?
I have a problem. I'm on 13.3.
I have setup an expression in the following manner:
F /: f[F, {x_, y_}] := x y (* x*y is an example of a specific functional form *)
...
1
vote
2
answers
137
views
Multiparameter GUI with button-driven update
I would like to be able to evaluate a function based on multiple Slider values by pushing a Button that creates the function, ...
2
votes
1
answer
99
views
Need an equation for modeling Tytler's Cycle
In all cultures over all time there appears, in different languages for different countries, the maxim "Shirtsleeves to shirtsleeves in three generations." This is a function with three ...
3
votes
2
answers
79
views
Problem with Association in DynamicModule
How can I understand the success of the first append but the failure of the second, here? (Mma 13.3.) Is there a ready work around?
...
3
votes
2
answers
91
views
Create vanishing button to transition between images
I have multiple "slides" that I would like to transition between, by clicking a specific area on each slide. eg:
...
0
votes
0
answers
40
views
Dynamic of the content of a certain cell (using NotebookRead)
Initial state :
...
0
votes
0
answers
80
views
Interactive control panel using dynamic is surprisingly slow
I am hoping to create a user interface for performing gaussian fits on two dimensional data. I made a basic grid of various controls and labels. The tool works, but it's much slower than I anticipated,...
0
votes
2
answers
124
views
Real-time function graph display
I would like to see how the graph of the function en[B, i, j, k, p] changes depending on i, j...
1
vote
1
answer
70
views
Dynamic text input of equation for graphing
I'd like a simple interface where the user can input (by text) a function $f(x)$, and then the function, its even part, and its odd part are all plotted on the same axes. I'd also like PlotLegend to ...
1
vote
1
answer
41
views
Setting FrontEnd`$ControlActive in EventHandler
Is it possible to emulate the behaviour of ControlActive[] for an ordinary
Control[] when implemented by an ...
1
vote
0
answers
73
views
Plotting equipotentials line of a Julia set in Mathematica
I need to plot the equipotential lines of the Julia sets of the polynomial $f(x)=x^2-1$ by using Mathematica, but I don't have a good background in programming.
Given $f$, with equipotential lines I ...
0
votes
0
answers
20
views
`Dynamic`caly change values of an association [duplicate]
Here are two attempts to make a slider that changes an value of an association.
...
1
vote
1
answer
70
views
Wolfram notebook Dynamic not updating in wolfram cloud
I have this very simple program:
...
1
vote
0
answers
47
views
Dynamic table of buttons
Suppose I start with a list
list ={{1,2},{3,4}};
I would like to have a table of buttons of the same form, starting with labels 1,2,3,4. By pressing each button, ...
0
votes
0
answers
97
views
Speeding up a dynamic vector plot
I would like to create a vector plot with a solution such that the vector plot is based on an underlying parameter en that I can adjust. With the help of Click in a vector plot to plot several ...
1
vote
0
answers
29
views
Block the appearance of the dialog windows "The kernel is not responding to a Dynamic Evaluation" and "Abort Dynamic Evaluation" [duplicate]
I have high-demanding Mathematica task which uses a lot of CPU. Its evaluation is interrupted with two types of an annoying dialog window.
The first one is
"The kernel is not responding to a ...
2
votes
1
answer
64
views
`Manipulate` updating when it should not
I have a Manipulate[ListPlot[data[[m;;n]],{m,1,10},{n,1,10}]. I execute, the plot is shown, I save the notebook, close Mathematica. I run Mathematica again, start ...
4
votes
0
answers
84
views
Is it possible to prevent the very first evaluation of Dynamic when it appears on screen?
Is it possible to tell DynamicBox to not run its very first dynamic evaluation when it appears on screen, and instead, to just show its ...
2
votes
1
answer
41
views
Run Initialization in Manipulate Manually
Although I have received a lot of help, there is a rather difficult question.
Let we have a system with parameter:
$$x_{n+1}=x_n^p$$
As long p changes, we have to ...
1
vote
1
answer
88
views
Recording results of Manipulate
I'm studying the effects of some parameter on a complex system.
When we change the parameter, the system is converted and we need to write each new state to the list.
Problems encountered in using <...
1
vote
1
answer
92
views
Creating and printing a real-time evaluation timer
I want to print a timer that starts at 0 when an evaluation begins and stops when the evaluation is completed. I have come up with the following solution using Clock...
3
votes
1
answer
52
views
DSolve output displays different from actual output after using locator in Manipulate
V 13.2.1 on windows 10
If you look at this
it does look bizzar, right? The same variable sol is different from what it should be above it.
But the above ONLY ...
0
votes
0
answers
32
views
Change parameter in dynamically updating plot // Manipulate outside of Dynamic // GUI for dynamic plot
I want to dynamically plot the Kuramoto model with the parameter K as an adjustable slider
\dot theta_i = omega_i + K/N \sum_j sin(theta_j - theta_i)
For fixed K, ...
4
votes
1
answer
77
views
Dynamic module won't pause when toggled (version update problem?)
I ran this code in 2019 to give my students a simple Fourier filtering exercise. It generates some multi-tone sound data, then plays the tone (allowing the user to pause the playing, since the tone ...
1
vote
0
answers
46
views
How to track the changes of the variable on a low level / TrackedSymbols? [duplicate]
There is a nice option to Dynamic or Manipulate wrapper functions, where one can specify, which of symbols Mathematica should ...
2
votes
0
answers
39
views
Freeze slider if locator moved
I have list of many locators in my Manipulate:
{{listoflocs, listoflocsinit }, Locator, LocatorAutoCreate -> True }
And I have a slider there:
...
0
votes
0
answers
55
views
Reset Button for Manipulate and freezing Sliders
I work on a Bezier curve subdivision project. I managed to implement it, but I faced some problems. (The code of my program is presented below.)
Firstly, if I change parameter n after changing other ...
2
votes
1
answer
67
views
Example of using Dynamic and DynamicModule from Wolfram site
What this example code from https://reference.wolfram.com/language/ref/Dynamic.html (under Applications section the first example) should teach us?
...
2
votes
2
answers
243
views
'Manipulate' keeps updating output even though the manipulated variable has not changed
Why is the following code keeping updating an output with increasing variable v, even though I have not changed the manipulated variable ...
0
votes
0
answers
47
views
Preventing Evaluation of Body of Manipulate
Overall, I am looking for a way to prevent the evaluation of the body of Manipulate until the controls meet a certain condition.
For example, consider the following....
4
votes
1
answer
103
views
How to Build an Interaction GUI that Interrupts Calculation?
I would like to construct a GUI using just the Mathematica language that allows me to start and stop a calculation interactively with the press of buttons. I have set up the following to show what I ...
1
vote
0
answers
76
views
DynamicModule for dynamic function with parameters
I want to be able to Dynamically Plot functions with parameters. One should be able to change the parameter and the function, while the function field should accept the parameter and the variable, ...
0
votes
1
answer
116
views
How can I nest a complex function?
I am examining the mandelbrot set so I need to iterate the function
f[z_Complex, c_] := (z)^2 + c
Besides, I want to choose the complex numbers dynamically from ...
3
votes
1
answer
130
views
Possible Lagrangian: ODE and System of ODE's
For the Lagrangian:
...