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
2 votes
1 answer
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 ...
user avatar
  • 215
3 votes
1 answer
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 ...
user avatar
  • 133
0 votes
1 answer
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 ...
user avatar
4 votes
1 answer
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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
  • 65
2 votes
2 answers
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 ...
user avatar
3 votes
1 answer
65 views

Dynamic TimelinePlot glitching out

Hi Dynamic Noob here :) I have written the following piece of code: ...
user avatar
  • 8,105
1 vote
1 answer
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 (...
user avatar
  • 2,068
0 votes
0 answers
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 ...
user avatar
1 vote
0 answers
79 views

Lyapunov Exponent question about LCE package [closed]

This code gives result as given below on my computer ...
user avatar
  • 319
2 votes
2 answers
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: ...
user avatar
1 vote
2 answers
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 ...
user avatar
2 votes
5 answers
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 &...
user avatar
  • 3,708
4 votes
1 answer
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 ...
user avatar
1 vote
1 answer
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: ...
user avatar
2 votes
1 answer
62 views

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

I make a progress indicator like this: ...
user avatar
6 votes
2 answers
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: ...
user avatar
  • 7,759
2 votes
0 answers
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 ...
user avatar
0 votes
1 answer
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: ...
user avatar
  • 103
1 vote
1 answer
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 ...
user avatar
  • 4,801
5 votes
1 answer
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: ...
user avatar
0 votes
0 answers
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: ...
user avatar
  • 135
2 votes
1 answer
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: ...
user avatar
  • 747
0 votes
0 answers
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 ./...
user avatar
  • 928
14 votes
1 answer
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 ...
user avatar
4 votes
1 answer
185 views

What's the correct action for pressing a key?

Consider the following code: ...
user avatar
3 votes
1 answer
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. ...
user avatar
2 votes
0 answers
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....
user avatar
0 votes
1 answer
101 views

Matching a Dynamic Argument Pattern

times is a list of times i.e. matching {{hour_, min_, sec_Real}..}. I want to call ...
user avatar
1 vote
1 answer
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. ...
user avatar
  • 169
13 votes
3 answers
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....
user avatar
1 vote
2 answers
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 ...
user avatar
1 vote
0 answers
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 ...
user avatar
3 votes
2 answers
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 ...
user avatar
  • 4,138
0 votes
1 answer
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. ...
user avatar
  • 1,636
3 votes
2 answers
79 views

How do you make two interactive sliders dependent on eachother?

I have this code. Definition of q is: ...
user avatar
2 votes
0 answers
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/...
user avatar
  • 569
3 votes
2 answers
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 ...
user avatar
2 votes
0 answers
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 ...
user avatar
  • 21
1 vote
0 answers
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). ...
user avatar
  • 888
1 vote
1 answer
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. ...
user avatar
  • 1,787
0 votes
0 answers
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 ...
user avatar
  • 499
4 votes
1 answer
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 ...
user avatar
2 votes
1 answer
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 ...
user avatar
2 votes
2 answers
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: ...
user avatar
4 votes
2 answers
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 ...
user avatar
  • 115
0 votes
0 answers
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 ...
user avatar
0 votes
1 answer
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: ...
user avatar
  • 53
1 vote
1 answer
123 views

My dynamic button evaluates as soon as it's created. How do I stop this behavior?

I think I finally hit on the holy grail of buttons. With a very small footprint I coded a dynamic AutoSave button whose duration and frequency can be set all the while showing very useful dynamic real ...
user avatar
  • 1,787
0 votes
1 answer
91 views

Create an interactive list in a Wolfram notebook that choosing its items make a change in calculations

I have 3 variables. I want to create an interactive list of items in a Wolfram notebook that if I choose each item, functions that are written by myself change the value of the variables and ...
user avatar
  • 340

1
2 3 4 5
28