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
0answers
37 views

Is there some way to make Dynamic track only a part of a variable [duplicate]

I often run into a situation like the one exemplified by the code below. The basic idea is to use a single DynamicModule variable as a list or association of values ...
2
votes
2answers
52 views

How can I optimize the Manipulate function in plotting?

Ahoy! I'm trying to create a Fourier series visualization tool that allows me to interactively view a Fourier series as a function of the number of terms using ...
4
votes
0answers
31 views

AutoAction not working with Locator and LocatorPane

This code is from the "Neat Examples" part on the LocatorPane page of the documentation: ...
4
votes
1answer
64 views

AnimationRunning option of Animate misbehaving

This simple example gives a strange error. ...
1
vote
1answer
117 views

Dynamic updating and editing of matrix

I am trying to create a user interface for a demo project that uses matrix as an input. I provide user with a default matrix (as an example) for a start, but user can edit it or add extra row to it ...
1
vote
0answers
79 views

How to set an initial value of slider?

So I have Slider[Dynamic@x, {0,3}] Dynamic@Plot[1-Cos[2*x*t],{t,0,Pi}] And I'd like x presents on the slider at x=1 value in the beginning and from that point I ...
7
votes
1answer
594 views

What is Westworld's Rehoboam Thinking? How to generate its graphical interface?

Westworld season 3 is another science fiction show containing a circular motif.The supercomputer Rehoboam predicts and controls human behaviour, and is shown physically as a large sphere. The ...
3
votes
0answers
69 views

Simple neural network with feedbacks in state-space form

Having studied more or less in detail the mechanisms of working with the state-space that Mathematica provides us with, I asked myself: can these tools be applied to neural networks? This article ...
2
votes
1answer
43 views

Understanding strange behavior with ToExpression in DynamicModule: Losing Apply

Short Version Consider the following code: ...
2
votes
1answer
65 views

How can I show the value of a function on Manipulate alongside the plot?

Suppose I have the following Manipulate function, Manipulate[Plot[Sin[a x + b], {x, 0, 6}], {a, 1, 4}, {b, 0, 10}] running ...
2
votes
1answer
40 views

How to enforce size of a ClickPane inside a Column

I would like to use an image as a ClickPane, inside a column. I want the image to appear at its native size. Outside of the column, this works: ...
5
votes
0answers
82 views

How to monitor progress with external language code?

I'm trying to figure out how to get tqdm (a python progress monitoring tool) to work with ExternalEvaluate and "ExternalLanguage"...
7
votes
2answers
130 views

How to pause an Animator with Mouseover?

I would like my Animator to pause when the mouse is not over it. For example, here it continues to update even when it's not moused-over: ...
0
votes
0answers
39 views

Error in CDFDeploy

I'm deploying a Manipulate code to a CDF using CDFDeploy. Everything was going fine until now. All of a sudden, I'm getting the ...
0
votes
0answers
77 views

Troubles With Dynamic,Panel in Riemann Sum Program

Tl:DR: Scroll all the way down General overview : This program aims to construct a demonstration of the Riemann sum by summing up the area of rectangles under the graph of a function....
9
votes
2answers
266 views

TableView interactive use

I am attempting to use TableView (added in version 12.1) interactively to edit data and save the edited data. The following works. ...
2
votes
1answer
100 views

Use the InteractiveTradingChart style slider in IntervalSlider

I want to combine IntervalSlider with a small plot,just like the InteractiveTradingChart. https://reference.wolfram.com/language/ref/InteractiveTradingChart.html I can only find the closest example ...
0
votes
0answers
40 views

transparent plots flash white when updating

As my university moves to online instruction, I am trying to make high-quality video presentations using Mathematica slide shows. I can easily get the content I want, but it seems tricky to display ...
0
votes
1answer
30 views

How to set variable range for Slider2D in DynamicModule?

I would like to have a Slider2D for a variable x but at the same time I have RadioButtonBar for another variable U. I want the Slider2D's range to change as I change U. I wrote this code but it doesn'...
2
votes
0answers
83 views

Interactive Graph Construction

I'm interested in constructing an interactive GUI graph generator, where I can add and delete vertices and edges. I'm aware of this question, and this is but a quick follow-up to this answer. I would ...
4
votes
1answer
704 views

My Computer crashes every time after I run this - Abort Dynamic Evaluation error

This code makes my computer crash, every time I run it. ...
2
votes
1answer
107 views

Table of Dynamic Disks

I'm trying to create a dynamic interface to generate disks depending on 3 parameters : x-coordinate, y-coordinate and radius. The disks are generated as soon as the "export" button is pressed. I'm ...
1
vote
3answers
96 views

DynamicModule: Assign Initial Values to Variables as List of Strings

Working within DynamicModule, how can a list of strings as be used to assign initial values to variables? For example, what nested functions can be used as ...
0
votes
0answers
18 views

How to show two (or more) plots, but only evaluate one in Manipulate? [duplicate]

I have a lot of spectral data in .csv format and I need to assign each spectral line to the respective sinusoid. The general idea was to load the dataset in Mathematica, ListPlot the data and then use ...
1
vote
1answer
36 views

Extracting the output of FlipView and then updating

Say I have a triangulation of an octagon: ...
2
votes
2answers
75 views

Changing a diagonal inside a regular $n$-gon when clicked

I am trying to understand the use of Dynamic, DynamicModule, EventHandler, etc. I created an ...
3
votes
2answers
77 views

Too much space after Slider

In part of a dynamic module I have a slider and I wish to put the units after the value. So I have done this: ...
2
votes
0answers
118 views

How to smoothly zoom into GeoGraphics without label flicker?

I would like to animate zooming into maps in a smooth fashion while showing labels - but without them flickering or jumping: ...
3
votes
1answer
89 views

Nested front-end-only EventHandler

Bug introduced in 11.3 or earlier, and persisting through 12.0 CASE:4372001 confirmed I am running into an issue trying to improve the performance of my user interface by moving as much of the ...
5
votes
1answer
69 views

Creating a dynamic list of parameter defined functions

I'm trying to create a list of functions that is dynamic in size and defines function names like so: ...
1
vote
1answer
92 views

Defining functions in a CDF and Manipulate [closed]

I want to deploy an interactive CDF that may depend on several functions. How do I define those functions? I'm using Manipulate, I defined the function inside it ...
8
votes
2answers
98 views

Avoid clipping label in IntervalSlider?

For custom appearances IntervalSlider seems to clip on the right side: ...
0
votes
0answers
55 views

Undo dynamic input

Here is a simplified example of the problem. ...
1
vote
0answers
59 views

How do Mathematica processes DynamicBox? [closed]

I've heard that Mathematica uses a session ad hoc to process DynamicBox, but I don't know any detail. I am using DynamicBox in ...
4
votes
2answers
92 views

Manipulate lists as function arguments

I am trying to write a Demonstration, which I believe means I must write it as a Manipulate, not a DynamicModule. My question is essentially the same as "Dynamic lists as function arguments", but I ...
1
vote
1answer
95 views

Dynamic Delimiter in Manipulate

Consider the following ...
2
votes
1answer
69 views

Representation in state-space of a system with ideal and real differentiating links in feedback

There are two systems in the state space with an ideal and a real differentiator. For the first system, the code in Mathematica is as follows. ...
0
votes
1answer
65 views

How to make the pressing of a button keep an event occurring at a controlled rate? [duplicate]

Suppose I use a Button[] to make some event occur, how can I make the pressing of this button keep that event occurring at a controlled rate? I tried the following: ...
0
votes
1answer
30 views

How to use buttons to add or subtract in real time?

I am trying to do the following: ...
3
votes
1answer
139 views

A button that creates a cell and evaluates it

Short version: PasteButton will paste its contents at the input cursor. I am looking to create a similar button that will paste something into a new cell and ...
1
vote
1answer
56 views

Manipulate expression giving error messages [closed]

I'm trying to debug this example code from a textbook: ...
1
vote
1answer
59 views
0
votes
1answer
127 views

Solving a fifth order polynomial with changing values of coefficients [closed]

I have a fifth order polynomial in x whose coefficients depend on a certain variable k. Now, I want to find the real roots of that polynomial for each value of k, say from 0.1 to 2 in steps of 0.05 ...
2
votes
0answers
162 views

Phase portrait of n-dimensional state-space system

It is usually not difficult to study the state space for n = 2,3 variable states. What if these variables are more than 3, for example 4,5 or 6? There is a rule according to which the dynamic features ...
3
votes
1answer
120 views

How to interactively draw a bitmap with mouse?

I cannot find the MNIST dynamic activation example I strongly believe I have seen in the documentation. What would be the most efficient way to draw a black &...
0
votes
1answer
52 views

How to make Mathematica output updated Graphics inside Manipulate?

I have created a code to get information about countries. I created a tooltip to identify cities on a graphics but when I go through the popup menu and click another country, the code doesn't ...
0
votes
1answer
47 views

How to make Button print the last updated point?

I am trying to create a graphics that outputs the population of a city on the graphics that is clicked. The problem is that it is not updating the last point that is clicked. Please help. ...
0
votes
1answer
38 views

Drop doesn't work with Dynamic lists

So I have this code right here. ...
5
votes
3answers
362 views

Aligning Control in Manipulate

I'm trying to use Dynamic and If inside Manipulate to alternate controls depending on a ...
0
votes
1answer
133 views

How to make a point bounce off of walls?

Say we have a square and a point inside. How to make the point bounce off when it hits the walls. No gravity. EDIT: New here, should've been more specific. The point has to fly in some random ...

1 2 3
4
5
27