The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
4
votes
2answers
69 views

Using the Range function with the Slot (#) function

I am writing a code to display longitudinal waves. I started with the following, filling the slots using the Range function. ...
4
votes
0answers
72 views

Dynamic Clock Stops Ticking

I want a dynamic timer to tell me how long it has been since a file update. I have coded a simple timer for this, but an hour or two in after completing an update, the dynamic timer stops responding ...
1
vote
0answers
48 views

Deforming a unit square into a cylinder [duplicate]

I am new to Mathematica and I am trying to create a flat unit square in the x-z plane made out of polygons with vertices that divide it into equal-length intervals on each side. Then manipulate this ...
3
votes
0answers
34 views

Mathematica Support for Simulating Kirigami Cuts

We can easily draw a grid like GraphPlot[GridGraph[{12, 12}], GraphLayout -> {"GridEmbedding", "Dimension" -> {12, 12}}] This gives us Does Mathematica ...
7
votes
1answer
84 views

Module vs. DynamicModule wrt ProgressIndicator

Why does the following work for Module but not DynamicModule? ...
3
votes
0answers
55 views

Large Dynamic expressions and responsive UI's

I have a ListLinePlot with 40,000 points. When it's displayed on-screen the input fields are not responsive (text appears slowly well after the user is done typing)....
3
votes
1answer
81 views

Constructing a 2D curve from a curvature function dynamically

I want to plot a curve starting from its curvature function and some initial conditions. This code generates a 2D curve with a given curvature (fun) and some initial conditions: ...
3
votes
2answers
43 views

Having three Control Objects for the same Dynamic variable which can override eachother

I'm creating an application with Dynamics for calculating and plotting circular orbits. It allows the user to set a custom radius, giving them an option to either use an InputField as well as a ...
4
votes
1answer
126 views

InputField, PasteButton, and Check not playing nicely with each other

Context Added to End In a previous question, I was looking for a way for an InputField to maintain the input structure of expressions so as to allow the user's ...
3
votes
1answer
45 views

How to keep seeing the updated value during a While loop?

z = 0; While[ z < 10^240, Dynamic[Refresh[z++]] ] I don't want to use Print[z] in this case, as it will generate ...
6
votes
2answers
119 views

Create an animation to pause at the specified location

How can I pause play at the specified location when export a gif file or using Animate? I want it to run automatically, no need to interact with the mouse. Here is an example: ...
6
votes
1answer
78 views

Understanding Dynamic, Refresh, and TrackedSymbols

I thought I had a pretty good handle on Dynamic, but some recent examples have made me suspect that I may have some misconceptions, and I am not finding good ...
0
votes
1answer
64 views

Using Dynamic with a list of variables

I am trying to generate a table of InputFields with a list of variables. I am generating the variable names on the fly as the lists I am dealing with have variable sizes. ...
1
vote
1answer
22 views

Dynamic and quitting the kernel

No doubt Dynamic is one of the most interesting functions in Mathematica. Not rarely we observe seemingly strange behaviour, as in the following situation. ...
1
vote
2answers
136 views

Bifurcation diagram of a difference equation

The function is f[x_, a_] := Piecewise[{{x (1 + a - a*x), x <= 1/2}, {x (1 - a + a*x), x > 1/2}}] How to make the bifurcation graphic of it? What ...
1
vote
2answers
52 views

InputField with Boxes-held formatting fails inside Dynamic

This is an outgrowth of an earlier question. I have an extensive user interface that has InputFields that I want to hold their specific structure as input by the user (e.g., keeping scientific ...
2
votes
3answers
96 views

How can I make interdependent Checkboxes?

Consider the following code, where I have a list of variables, each with different specified units. In my real case, these lists are not fixed, hence the surrounding Dynamic and the general definition ...
0
votes
0answers
63 views

Dynamic Updating Annoyance

I want to use the following grid of Dynamic variables to set values for evaluations of expressions containing those variables. ...
4
votes
1answer
51 views

Evaluate in place annoyance

I want to use the following expression to get a string value: Row[{"Enter index identifier: ", InputField[Dynamic[indexidentifier], String]}] and I also want to ...
0
votes
0answers
46 views

How to draw mode vectors of two degrees of freedom

Here is two degrees of freedom system. *And the mode vectors of this system is ({{1, 1},{1, -1}}) *And the mode shape will be expressed like this... And the ...
2
votes
2answers
107 views

Flow over the circle

I'm trying to plot a vector field over a circle, Particularly the vector field in this plot: ...
0
votes
1answer
37 views

Avoiding distinct background appearing behind plo label text

I keep getting a light background behind my text when I use the PlotLabels option (see picture below). ...
13
votes
1answer
159 views

Scheduled tasks and dynamic updating

Here is an example: x = 0; Dynamic[x] now please run: SessionSubmit[x = 1; Pause[10];] Problems: Annoying one: ...
1
vote
2answers
170 views

Dynamic number of parameter fits in Mathematica

I am trying to learn if in Mathematica one can perform fits of analytic functions that are expanded and written as power series. In particular, we can consider the following generic form: $$ f(B,x) = ...
1
vote
1answer
37 views

Dynamic not updating InputField

I'm trying to do some interactive fitting of data using an arbitrary number of the same function (a Gaussian in this case). This means that I also have an arbitrary number of variables and constraints....
1
vote
1answer
34 views

Using Switch inside Dynamic with variable number of conditions

I'm trying to create some code that plots a variable number of Gaussians, and allows me to control their parameters using Locators. One locator at the top controls $...
0
votes
1answer
94 views

Plotting a circle that can move up and down the y-axis

How can I create a circle for the equation $\qquad x^2+(y-a)^2=9$ where $a$ is a parameter. I want to plot this curve with a slider $(a)$ in Cartesian coordinates (better with axes). If possible, ...
3
votes
3answers
141 views

Local variables in DynamicModule affected by outside evaluation

I was trying to use DynamicModule to create a Input cell that contains a variable assignment, where the variable name is given ...
1
vote
1answer
59 views

Two locators on two different plots in Manipulate

I am trying to create a Manipulate module that shows two plots, and have locators on each of those plots, as well as two sliders. The locators do do not affect each ...
1
vote
0answers
34 views

Basic question about update of dynamic content [duplicate]

Sorry if this has already been answered 50 times, but here it goes: why does ...
1
vote
1answer
52 views

DSolve behaves weirdly with dynamic [duplicate]

I am an beginner in using dynamics as well as mathematica. I am trying to ask mathematica to solve and plot the solution of X'=AX with dynamic every time my matrix A updates. However the Dsolve ...
0
votes
0answers
37 views

Kernel crash with InputField[Dynamic]

InputField[Dynamic[h, (h = #) &], FieldSize -> 20] Dynamic[h] When we enter h=1.1+x, the program exits. However, with <...
1
vote
1answer
65 views

How do I make a Module return values upon a button press?

I have put together a function of the form: ...
1
vote
1answer
55 views

Dynamic Plot of multiple Disk Graphics

I want to plot multiple disks with disk-coordinates and disk-radii from two dynamically updated lists. I think there should be an easy way to do that but I dont get it. Thx for your help! ...
0
votes
1answer
59 views

Advanced Dynamic Input

Note: I have corrected this question to fix an error in my understanding of RealExponent (which I have now removed). Suppose that I have a bunch of parameters that I want to set interactively using ...
8
votes
2answers
154 views

Query inside Dynamic triggers continuous high CPU load for FE

Here is a (vicious) problem I am able to reproduce with v12 and v11.3 (previous versions not tested) and OSX. This is a minimal example to demonstrate it (even if it seems useless here I do need <...
2
votes
0answers
48 views

Dynamic and TrackedSymbols

Consider Column[{ Slider[Dynamic[x]], Dynamic[x;RandomReal[]], Dynamic[RandomReal[], TrackedSymbols:>{x}] }] I expected that both dynamics would update ...
0
votes
0answers
42 views

Text with dynamic values

...
6
votes
2answers
83 views

Store Dynamic-accessible hidden metadata in a cell

Is there a way to store metadata in a cell in such a way that it can be accessed with Dynamic? Think of e.g. how ExternalLanguage cells work. We can select whether ...
0
votes
0answers
28 views

Custom PopupMenu displays menu items as values instead of labels

I'm trying to create custom appearance for PopupMenu with the below code. The problem I have is with the menu items which are displayed as values instead of labels. ...
0
votes
0answers
56 views

Dynamic updating issue

I would like to evaluate/simplify a series of expressions. The first set of expressions works fine, but when I try to evaluate the second line of my code (a very simple expression), the program keeps ...
1
vote
0answers
33 views

Dynamics not updating normally in Wolfram Cloud

In Mathematica, InputFields and Sliders that are connected to Dynamics will change their ...
1
vote
1answer
55 views

How to create dynamic PlotLegends?

How to add dynamic PlotLegends to the below code? ...
0
votes
0answers
49 views

Using Dynamic[] function

I would like to use Dynamic[] to print progress of evaluation of some function, which works quite long. let's say that the definition of ...
0
votes
1answer
46 views

AppendTo doesn't update when interacting with PopupMenu

I'm trying to ListPlot a list calculated by the Button called "Plot" with PopupMenu linked ...
2
votes
0answers
43 views

Problem with PopupMenu: Its values don't update dynamically

I have a problem with PopupMenu inside DynamicModule, its values don't update dynamically as they supposed to. The example below ...
6
votes
4answers
162 views

Dynamic Linkage of LocatorPane and InputField

How do I get the InputField to coordinate with the LocatorPane so that a change in each control changes the other to be in agreement? It would be nice if the function was self-contained and was ...
5
votes
2answers
101 views

Manipulate with arguments points on a circle

Start with the following parametric equations of a torus: ...
2
votes
1answer
57 views

How to force ListPlot to print the new curve while keeping the old one

I would like to create a graph using ListPlot which prints new dataset every time the button is evaluated (based on the value given in ...
1
vote
1answer
40 views

Problem when using TrackedSymbols and UpdateInterval to refresh different expressions at different times inside Dynamic

While attempting to optimize my program, I noticed an issue with the Refresh expressions I am using inside a particular Dynamic[]. I will use a simplified example ...