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

A bug in InputField of type Expression?

I have a problem with a simple InputField of type Expression: ...
2 votes
1 answer
74 views

Problem With Dynamic[] in Graphics

I'm writing a little function to quickly draw some bezier-curves and lines on diagrams. The function opens a DialogInput. The user can use Locators to draw a line onto the diagram. When the user ...
  • 319
1 vote
2 answers
63 views

A strange error occurs when using First, Last, and Take to pick out list elements for dynamically styling a button

The top function setstyles is the only one we need to focus on. However, the four functions below it are needed for this to work. These validate up to 4 properties ...
  • 2,009
2 votes
1 answer
73 views

How to create multiple dynamic variables at once?

With the following code: x[1] = 0; Checkbox[Dynamic[x[1]], {0, 1}] Dynamic[x[1]] I can create the dynamic variable x[1] and it ...
  • 4,911
1 vote
1 answer
51 views

How to incorporate ResourceFunctions to autocomplete

Edit: As mentioned in the comments below, typing just ResourceFunction["Mo"] results in a list of ResourceFunctions that have a name that starts with Mo. This is good enough for me although ...
  • 1,238
4 votes
1 answer
67 views

Verbose `Dynamic` variable lists

Is there a way to achieve the following without listing all of the dynamic pieces so verbosely / manually listing all the dynamic variables? ...
  • 8,005
0 votes
0 answers
33 views

How to use NotebookDynamicExpression on a timed event

I have a few questions for how the feature NotebookDynamicExpression was used in ResourceFunction[SetNotebookAutoSaveTime]. Below is the entire definition: ...
  • 2,009
0 votes
1 answer
47 views

Dynamic 2-state toggle button difficulty returning to original state

I had this working fine this morning, but I proceeded to refactor, and somehow I cannot get it to toggle like before. It does initialize, and it does go from state-1 to state-2 but not back to state-1....
  • 2,009
2 votes
1 answer
78 views

Mathematica frequently stops responding

Every time I run a cell, move the cursor, start typing, the entirety of Mathematica stops responding. I am getting "Disable dynamic evaluation" pop ups but I have disabled Dynamic in the ...
  • 173
0 votes
1 answer
40 views

InputField - change text alignment to center

Is it possible to align text in InputField Right/Centered? (Seems Left is default) Seems there is no alignment option for InputField. What I want is center - More specifically, Real-time centered : I ...
  • 3,221
0 votes
0 answers
27 views

Convenient way to make a text cell togglable

I like being able to hide text cells in a notebook. Currently I am doing this by writing another text cell above the current text cell, writing "open" and then grouping the cells. That way ...
  • 1,238
0 votes
1 answer
67 views

A very simple Dynamic Button label is not updating when state changes

Just when I thought I had Dynamic tackled for most non-complex controls, this comes along and makes a mockery of me. So what the ...
  • 2,009
3 votes
2 answers
150 views

How use Locator for planar point and image of that point under a function?

Consider the following function as mapping the {x,y}-plane to a copy of that plane: F[{x_, y_}] := {x^2 - y^2, 2 x y} I want to ...
  • 11.5k
10 votes
2 answers
390 views

Improving progress bar code (10 years latter)

In the last 10 years (see this post) when I want to track the result of a longer calculation, I use the following pattern: ...
  • 25.6k
0 votes
0 answers
45 views

Two interactive ListLinePlots

I need to build an interactive interface to visualize multiples plots at the same time. Let's consider two lists: ...
  • 21
1 vote
1 answer
84 views

Make plot manually update with Manipulate instead of auto resetting

I'm trying to write a script that will dynamically update when I change the tensor that I am working with and the interval tensor elements. Whenever I update the tensor elements that I am working with ...
4 votes
1 answer
66 views

Cross sections of Histogram3D in both dimensions

I am trying to visualize a list of about 1 million {x, y} tuples, and for this I made ...
0 votes
0 answers
48 views

Fullscreen "real-time" animation without margins

Suppose you have a function mapping a discrete input, e.g., ranging from 1 to $n$, to an image. Each image resulting from a sequence of such inputs should be displayed in fullscreen one after the ...
0 votes
1 answer
44 views

Dynamic lines with plot as background

I am trying to generate two lines (with 2 points each) that are dynamically updated with a plot as background. I have come quite far, but do not manage to add the plot as background. ...
  • 900
0 votes
0 answers
21 views

Making Interactive Lists Using Popup Menus

I'm having trouble making a popup menu that will select a value and input it into a new list/edit a defined list. I would like a nested list to be edited using the pop-up menus without duplicate lists ...
1 vote
0 answers
94 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 ...
3 votes
1 answer
68 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 ...
  • 8,417
8 votes
1 answer
171 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 ...
0 votes
0 answers
64 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 ...
  • 73
5 votes
1 answer
232 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 ...
  • 1,680
2 votes
1 answer
50 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 ...
  • 245
4 votes
1 answer
92 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 ...
  • 143
0 votes
1 answer
80 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 ...
4 votes
1 answer
68 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 ...
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 ...
  • 65
2 votes
2 answers
560 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 ...
3 votes
1 answer
81 views

Dynamic TimelinePlot glitching out

Hi Dynamic Noob here :) I have written the following piece of code: ...
  • 8,417
1 vote
1 answer
64 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 (...
  • 2,881
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 ...
1 vote
0 answers
88 views

Lyapunov Exponent question about LCE package [closed]

This code gives result as given below on my computer ...
  • 664
3 votes
2 answers
127 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
2 answers
74 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 ...
2 votes
5 answers
177 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 &...
  • 3,708
4 votes
1 answer
79 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
1 answer
60 views

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

I am displaying a progress bar in my notebook like this: ...
2 votes
1 answer
71 views

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

I make a progress indicator like this: ...
6 votes
2 answers
900 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: ...
  • 8,005
2 votes
0 answers
73 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 ...
0 votes
1 answer
49 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: ...
  • 103
1 vote
1 answer
43 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 ...
  • 4,911
5 votes
1 answer
78 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: ...
0 votes
0 answers
53 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: ...
  • 135
2 votes
1 answer
80 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: ...
  • 747
0 votes
0 answers
36 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 ./...
  • 1,264
14 votes
1 answer
214 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 ...

1
2 3 4 5
28