Questions relating to the dynamic family of functions in Mathematica, such as Dynamic, DynamicModule and Manipulate.

learn more… | top users | synonyms

3
votes
4answers
282 views

EventHandler Not Detecting KeyDown

I am trying to use EventHandler to detect KeyDown within a LocatorPane. Anytime I press a key inside the LocatorPane the proper action is not executed (doesn't matter which key I choose) but rather ...
3
votes
1answer
112 views

Alternate controls in manipulate

Is there a way to have two controls that govern a single variable in a Manipulate? Specifically, I am using a Locator to select an {x,y} coordinate, but I would also like the user to be able to ...
3
votes
3answers
605 views

Animation is jerky, but slider is not

When I do the following simple animation (from the book Mathematica Navigator, p. 316) the slider control changes the image smoothly, but when I play the animation it is jerky. Is there anything that ...
3
votes
2answers
161 views

Dynamically show usage

As the title states I would like to dynamically show ::usage on several functions. Let's consider two functions here: ...
3
votes
2answers
179 views

Using list elements in TrackedSymbols for Dynamic

During the execution of the following code a column of three lists and two sliders are displaying in output. The first list updates if either a or b changes. The second list updates only if the value ...
3
votes
1answer
413 views

How to improve this dynamic progress bar code

I created this progress bar to use in my codes: ...
3
votes
1answer
895 views

Mathematica - Dynamic - ListPlot - baseline

I am performing baseline fitting to a raw dataset on a two-state equilibrium process. The process involves fitting the sigmoidal curve to an upper and lower linear baseline, and subtracting so that ...
3
votes
1answer
68 views

Dialog notebook with multiple popup menus

I'm trying to create a user interface in Mathematica; the user will enter specified information, it will be processed, and then data will be inserted into a MySQL database. The pieces work ...
3
votes
2answers
54 views

How to get highlighted text from event

I want to do the following: Given a text in a Mathematica dynamic module "at runtime". If some text is selected with the cursor/mouse, after the mouse button release, get the selected text. Thank ...
3
votes
2answers
133 views

How to use locally scoped dynamic variables in Manipulate for expression and control parameters

I have a Manipulate that has dynamic variables that I want to use in the displayed expression and use in the parameters for the manipulate controls. I only ...
3
votes
1answer
169 views

How to delete graphics

The code below does not execute as I had intended it to do. Clearly, I do not understand where to go from here. The first click of the mouse sets the initial conditions (t0,x0) for the unique ...
3
votes
1answer
398 views

How to efficiently drag points on a curve within a Manipulate

My intention is to demonstrate on any conic various metrics properties on points belonging to the conic and connected by lines. I want the points to be dynamically moved not the usual way, ...
3
votes
1answer
228 views

Dynamic inside Button

This bit of code runs a little animation of a stochastic process: ...
3
votes
2answers
252 views

Getting variables out of Dynamic Modules after restoring the program

The scrap of code below [from Mathematica's Help on DynamicModules] generates a Pane of ...
3
votes
1answer
68 views

Delete `x,y,z` occurrence (or any permutation of it) from parent data set (dynamically)?

Simple question: I would like to dynamically specify a list of 3 elements, {x,y,z}. Then I'd like to find that list, or any of its permutations, in a parent data ...
3
votes
1answer
142 views

In a DynamicModule, is it possible to use multiple EventHandler declarations? [duplicate]

Possible Duplicate: Wrapping EventHandler by Table I am running Mathematica 7. However, I am new to using Dynamic, ...
3
votes
1answer
229 views

Forcing a graph not to resize

This code: ...
3
votes
2answers
113 views

Button with loop that iteratively updates slider in Manipulate

I have the toy Manipulate. ...
3
votes
1answer
96 views

How to have an Input cell that doubles as an Output

Motivation / examples: on a spreadsheet environment, each cell doubles as input and output. If we click on it, it shows the input; if we hit Enter, it shows the output; on this answer, I tried to ...
3
votes
1answer
79 views

Evaluation of Dynamic suppressed by semicolon

Dynamic functionally of Mathematica it is really very confusing and I tried and spent a lot of time reading and reading but still not figuring it out comfortably. I ...
3
votes
1answer
63 views

Control with label doesn't work properly inside Manipulate

Consider the following example: Manipulate[{1}[[i]], {i, {1 -> "a"}}] Execute it and you'll get: The correct result will be displayed if you select ...
3
votes
1answer
63 views

Extending Button's Method -> “Preemptive” 5 second timeout

This is an example from the documentation for Button : ...
3
votes
1answer
170 views

Animated moving dot

This question came about because of my failure to implement an answer to this previous question. My idea was that an answer could be written using aClickPane and an<...
3
votes
1answer
383 views

Table with dynamic iterator

I would like to make a Table whose iterator has a dynamically updated endpoint, i.e. Table[i,{i,1,Dynamic[n]}] Is this possible? Here is the context: ...
3
votes
1answer
122 views

Export LocatorPane as image by button

How to Export LocatorPane as image by button or at least by something else? Kuba, thank you! Your method works in a simple case: ...
3
votes
1answer
154 views

How to simulate the 1-D motion of a particle under constant acceleration? [duplicate]

I am trying to represent the position of an object under freefall, but am completely lost. Here is my attempt so far: ...
3
votes
1answer
182 views

How can I get precise frame rates in dynamic?

I've been the Spritz sdk in my ios apps, and I love it. For funsies I wanted to see how much less code a mathematica version would take! Using dynamic I get a nice result, shown below in code. ...
3
votes
1answer
191 views

Dynamic generation of Buttons

The Project I am trying to dynamically turn on/off the display of data for a circos-esque plot that I generated. The Code I have data stored in mfData and a ...
3
votes
1answer
562 views

System Dialog Input with Button

I am trying to create a button that uses SystemDialogInput["FileOpen"] to browse for a file and assigns the file name to a variable. For example: ...
3
votes
1answer
276 views

LocatorPane, Dynamic and deleting locators

Compare the following two code snippets : Version 1 ...
3
votes
1answer
80 views

How to Operate on a Dynamic Dataset?

I cannot operate on the Dataset I am dynamically filtering. Minimal example follows. ...
3
votes
1answer
52 views

An issue regarding the use of CopyToClipboard with dynamic content

Please, consider the following code: ...
3
votes
1answer
62 views

ListDensityPlot3D result in saved notebook doesn't show correctly

Consider this example in the documentation of ListDensityPlot3D: ...
3
votes
1answer
331 views

Initializing Manipulator value within DialogInput (version 10.1 only)

Bug introduced in 10.1.0 and fixed in 10.2.0 I've confirmed, with WRI, that an issue was introduced in version 10.1 with regard to initializing Manipulator Dynamic ...
3
votes
1answer
75 views

Changing size and/or aspect of OpenerView in Mathematica 10

I would like to change the size of the Opener in OpenerView when using Mathematica 10. In Mathematica 8, there was the option <...
3
votes
1answer
149 views

How to build a constant Graphics object

I'm making an animation with Manipulate for a representation. The code looks like this ...
3
votes
1answer
133 views

Dynamically apply a function fed by Input[]

Here is a bit of code: funlist = {Plot,ListPlot}; Input[Panel[PopupMenu[Dynamic@whichfun, funlist], "blabla"],Dynamic@whichfun] The idea here is to select what ...
3
votes
1answer
220 views

Having Dynamic evaluated when off screen

As the title says, I want a cell containing the dynamic solution of a DAE-System to be available over the whole document. I use a lot of different Plots and Sliders scattered over the document and it ...
3
votes
1answer
253 views

Avoid crash in recursive Dynamic

With the following Dynamic cell, I can reproducibly crash Mathematica, so do not try this unless you have saved all your work! ...
3
votes
2answers
106 views

Is it possible to return a list of variable values set by Manipulate?

Is it possible to write a function that returns a set of values that are set by Manipulate? For example, a function that returns a dataset of variables modified by ...
3
votes
1answer
117 views

Dynamic Output during ParallelMap

I can't seem to figure out how to dynamically output a variable that is being used in a parallel evaluation. Below is an example function that demonstrates my problem. ...
3
votes
1answer
143 views
3
votes
1answer
130 views

Comparing data sets with fade transitions (Code speed-up)

I am using the utility below for data comparison. However, with my real (more complex) charts the processing is quite slow, so setting the Pause time under ...
3
votes
0answers
25 views

Dynamic graphics appears first with wrong background [duplicate]

This is one of those annoying things that you put aside for years before making a post of it. Put a dynamic Graphics into a gui object (...
3
votes
0answers
56 views

High CPU load for dynamic classification

I encountered some issues with extremely high CPU load when I tried to classify live images (using Dynamic and CurrentImage[]). ...
3
votes
0answers
159 views

Neural network playground

I came across this Neural Net Playground demonstration based on Google's Tensorflow package. It visualizes the data processing inside a neural network and allows you to tweak parameters and ...
3
votes
0answers
96 views

Preventing the content of a CDF report from being overwritten when multiple reports are open at once

Our Mathematica application obtains a group of input files, analyzes them and generates a report in a form of CDF document. The report contains multiple dynamic/interactive graphs and tables. To save ...
3
votes
0answers
35 views

InteractiveTradingChart not working inside Dynamic

I would like to have an interactive trading chart that updates by changing the input stock. But anytime a dynamic is wrapped around the function, it doesn't manage to initialize. Is there any way to ...
3
votes
0answers
160 views

How to implement a live-searchable table view? [closed]

Everyone with a mobile device is familiar with table views, searchable scrolling tables where rows have multiple elements like images and text, and are populated from some data source. Since a ...
3
votes
0answers
81 views

Unimportant change in Dynamic

I just observed an unimportant change in version 10 with respect to Dynamic. The command x=0; Dynamic[x=x+1] returns a cell ...