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
5
votes
0answers
44 views

Dynamically access variables in external session?

I tried to get a value from a python session to show up in a dynamic cell: First run: ...
2
votes
1answer
58 views

Nested Dynamics for moving locators

I'm trying to dynamically draw an ellipse on the image acquired from a camera. See code below: ...
1
vote
3answers
106 views

Dynamically selecting Rows from a Grid

This question is related to the following Interactively select a row/column of a Grid I’d like to present information in a grid where in the user can choose from the entries in the table. As shown ...
3
votes
1answer
73 views

How to Join Dynamic Graphics

I am just getting started with Mathematica and I want to join two dynamic plots that I'm playing with. They are generated by the following code: ...
2
votes
1answer
174 views

CDF Deploy of dynamic module

I am trying to deploy a CDF file with a small animation that does the following: when the button is pressed, it plays a sound and displays a spectrogram ; while the sound plays, a red progress line ...
0
votes
0answers
71 views

Dynamic is either fast or correct evaluating slow function on synchronous link

I am working with audio on a data preparation algorithm that detects specific points in an audio file, and making a tool for myself to help me go through a couple hundred files quickly enough to find ...
10
votes
1answer
972 views

What makes a function ticklish?

The Advanced Dynamic Functionality tutorial informally describes a ticklish function as follows: Every time you evaluate RandomReal[], you get a different answer,...
1
vote
1answer
43 views

How to combine Control and AutoAction in Manipulate?

I have 2 Manipulate as below:- ...
4
votes
1answer
156 views

Unevaluated Which

I have the following Code: ...
0
votes
1answer
56 views

Format numerical input as text [closed]

I currently have the following code: ...
4
votes
0answers
43 views

Weird behavior of Dynamic + Rotate

Check the following six piece of code: ...
1
vote
0answers
57 views

Weird stutter Issues with Dynamic

System information: v11.3 on Windows 10 This is a piece of dynamic code which has no relevance to mouse actions: ...
3
votes
1answer
53 views

How could I detect if a notebook is currently the active window?

How could I detect if a notebook is currently the active window? This is what I have tried, but it does not work as the value of x is never updated: ...
16
votes
2answers
221 views

Scaling Dynamic widgets up

The serious flaw of Dynamic is a combination of facts: it is triggered/refreshed by any kind of mutation of a symbol, careful metaprogramming/construction of ...
9
votes
1answer
173 views

How to defer creating/displaying boxes in front end until requested?

If the size of an output expression is larger than threshold ByteCount, the front end will display an abbreviated version of it by producing an ...
9
votes
1answer
137 views

open a Mathematica file on the same position last viewed?

When I open a Mathematica file it goes to the beginning of the notebook, but I have a big Mathematica (ver. 11) file with many "input" and "output" cells, and I want to go back to the location in the ...
0
votes
1answer
48 views

Help with actions in EventHandler

I am trying to write a program where the user types on the keyboard in a specified location, and Mathematica outputs what you are currently typing, plus a prediction that is updated in real time of ...
4
votes
0answers
84 views

Arrow @ Tube does not work with Dynamic coordinates

Bug introduced in V10.0 or earlier and persisting through V11.3 CASE:4063244 Arrow @ Tube @ {Dynamic @ pt1, pt2} does not seem to work. I'd expect the opposite ...
2
votes
1answer
65 views

Nested ordered summation

How can I implement the following sum? Given $n$ and $j<n$: $$\sum_{k_j=1}^{n-1}\sum_{k_{j-1}=1}^{k_j-1}\sum_{k_{j-2}=1}^{k_{j-1}-1}\dots\sum_{k_1=1}^{k_2-1} \phi_{(n-k_j)}[\phi_{(k_j-k_{j-1})}[\...
3
votes
1answer
102 views

assignments within Manipulate

I have encountered unexpected behaviour when assigning variables in Manipulate. Consider an inverted parabola y[x_, c_] := -x^2 + c The following code finds the ...
1
vote
2answers
90 views

Button with two expressions to evaluate depending on state

I miss a Button-like interface element which would behave like Checkbox but evaluate expressions instead of changing value of a <...
1
vote
1answer
72 views

Dynamic GUI problem

I'm fairly new to Mathematica and currently making a simple GUI. I'd like to work with dropdown menus and I'd like to dynamically change the possibilites of those menus depending on what's selected ...
3
votes
1answer
78 views

Some speeding up with dynamic images

When I was browsing some of the old code, I came across this ...
3
votes
2answers
91 views

Slider behaving unexpectedly when non-horizontal

For this simple code {Dynamic@Rotate[Slider[Dynamic@x, {0, 2*Pi}], x], Slider[Dynamic@x, {0, 2*Pi}]} At x=0 the slider has an ...
0
votes
1answer
34 views

Issues with Manipulate and dynamic variables in plotting [duplicate]

I'm trying to make a manipulate that shows a parametric plot of a cycloid with manipulators that affect the shape of the curve. My problem seems to be my scoping of the variable ...
6
votes
3answers
249 views

Why does the Slider value change from an Integer to a Real, causing the Manipulate expression to break?

After I evaluate the following dynamic expression I encounter an unexpected behavior: ...
1
vote
1answer
66 views

How to prevent redundant evaluations over a sample of observations in a dynamic context

I want to create a dynamic calculation (Manipulate) that will display a complex (time consuming) calculation. The gist of the matter is working with a given sample ...
1
vote
1answer
69 views

Use Manipulate for a global variable

I do have a global variable called w1, which is used as a factor in a dataset, however I want to make this factor dynamic. ...
1
vote
0answers
60 views

How to plot data from table dynamically, without knowing how many columns are there?

I'm trying to read coordinates at certain times of Planets and Plot the orbit into a graph. For this example I'm doing this for eight planets, some coordinates from a table of some timesteps of the ...
4
votes
1answer
68 views

“Locator” positions are wrong/on the wrong plot

I have implemented a simple climate model for my students to play around with in Mathematica. There is a multi-panel plot; the first has CO2 emissions, and you can drag the line around to set up ...
2
votes
1answer
95 views

How to save values in dynamic fields?

I created a notebook with this line: Grid[{{InputField[Dynamic[x]], Dynamic[x^2]}}] Then, I filled a certain value instead of "x". Then, I closed Mathematica ...
6
votes
0answers
82 views

Unsecured Chat when Dynamic Update is Enabled

Mathematica v11.3 has just been released, A new feature, Chat, could be found In File>New>Chat. It is convenient when communicating code with other users, but ...
6
votes
2answers
134 views

Checkboxes to ranked list

So, my aim is to produce a user interface with checkboxes not only returning True/False, but also the order in which they were ...
1
vote
1answer
82 views

Interactive Manipulators acting badly

How do I fix the bad behavior of Manipulator? This is in regards to this Interdependent controls in Manipulate question. Heike' s code does not work right on the first click when specifying the ...
0
votes
1answer
46 views

Running a DynamicModule outside the Notebook containg the DynamicModule

Inspired by the "Using DynamicModule variables outside the DynamicModule", I'd like to have a hands-free approach to invoking a DynamicModule in a newly created Notebook. One of the original answers ...
1
vote
1answer
84 views

Dynamic updating of a list-picker's contents

A piece of drop-dead simple code: ...
2
votes
0answers
46 views

ParametricPlot causes Manipulate to update when local & external variable share the same name

Here is a strange behavior reminding me of a previous bug when Manipulate updates without reason, but it is probably not the same reason here and seems to be ...
1
vote
1answer
95 views

Problem with Manipulate after declaring pure function with Hold [duplicate]

I'm trying to illustrate the generation of the conic curves with a plane and a cone surface in ContourPlot3D, when I make a static plane there is no problem, and the intersection curve was generated ...
1
vote
1answer
68 views

Problem with DialogInput and store variable

Writing: ...
0
votes
0answers
293 views

Linear Stability Analysis of dynamical system

I'm starting to use Mathematica for some linear stability analysis of a discrete non-linear dynamical system. I can't find an on-line tutorial for it, and I'm quite at a loss (in fact I can't even ...
1
vote
0answers
40 views

How to use Dynamic and Setting inside a DynamicModule?

Consider an image (img) as Using the following code I can dynamically change the value of t and see the updated components. <...
2
votes
1answer
60 views

strange error in nested manipulate

Below is an illustration of the problem. ...
2
votes
1answer
82 views

DynamicImage with a Dynamic

This is probably a very simple thing, but I could not figure it out. I am trying to create a window were I can display an image while being able to zoom, pan and scroll while adjusting contrast and ...
1
vote
0answers
49 views

Frictional spin effect for 3D graphics? [duplicate]

Even though most functionalities on the Wolfram Player, Wolfram Cloud, and Cloud Notebooks are broken and unusable, there is however one nice thing: momentum dissipation, this is an 'accelerated slow ...
2
votes
1answer
64 views

How to monitor CellBracket evaluation state

Setting SynchronousUpdating to False or Automatic in GUIs may send calculations to the ...
8
votes
1answer
167 views

Dynamic triggered but renders the same content

Documentation bug introduced in V10 or eralier and persisting through V11.3 It is a documentation bug because the undocumented optimization method by FE makes major assumptions. The example is not ...
8
votes
1answer
169 views

Audio equivalent of CurrentImage

Unfortunately, there is no CurrentAudio[] function yet. I'm trying to poll for 1 second clips of audio (as fast as possible) from my computer's microphone (and ...
-3
votes
2answers
164 views

Need code for differential equation analysis $\dot{x} = rx \ln \frac{K}{x}$ [closed]

I'm analyzing the Gompertz population model: ${\dot{x} = rx \ln \frac{K}{x}}$. Can anyone kindly write the mathematica code for this equation so I can vary the parameters so I can intepret what's ...
0
votes
1answer
53 views

Make dynamic folder selection palette

I have a dynamicSelectDir which serves as dynamic select folders ...
6
votes
2answers
159 views

How to organise functions inside a package instead of the initialisation of a DynamicModule?

I want to know how to write clean code of a big DynamicModul for a complex GUI which should be deployed as a CDF. I want to split the dynamic module into several smaller DynamicModuls and Functions. ...

1 2 3
4
5
24