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

learn more… | top users | synonyms

0
votes
1answer
47 views

Want to display a animation necklace when updating a list of suggestions from an inputfield search

I have an InputField search that provides search suggestions, but I want an animation necklace to be displayed while the search is 'busy'. I would also like this to be done using Dynamic rather than ...
9
votes
3answers
201 views

Asynchronous evaluation on EventHandler

How can I make this progress bar appears when I press Enter? The Button Evaluate works just fine, but when Enter is pressed it jumps the progress bar. It would be ...
1
vote
1answer
28 views

How can I decouple the updating of a `LocatorPane`'s background from changes in its point variables?

I am building a Dynamic application and I'm having some trouble understanding exactly how Refresh should be implemented. The ...
7
votes
2answers
349 views

Click in a vector plot to plot several solutions of a system of differential equations

I am aware of the Locator button and I am aware of the Equation Trekker package, but they are not what I want to use. Here is what I specifically want to know how to do, if possible. Consider the ...
6
votes
0answers
264 views

How to restrict the mouse cursor to stay within a box?

I'm trying to use Mathematica to write small games, and I find that it would help to restrict the player's mouse into the game window (just like other games do). Is there any way to achieve this? ...
1
vote
1answer
50 views

How to disable dynamic update in DynamicModule when certain variable is updated [closed]

I have a UI with DynamicModules. I have a progress bar, whenever the varibale progress updates, the ...
0
votes
1answer
24 views

About Manipulate : How to make this work properly?

Manipulate[ Plot[PDF[NormalDistribution[mu, sigma], x], {x, -4*sigma, 4*sigma}], {mu, -10, 10}, {sigma, 0, 10} ] I got the following error:
0
votes
0answers
38 views

Dynamic locator missing when image change

I plan to get corner coordinate of desired image dynamically through LocatorPane[Dynamic[pt],back]. However, I notice that locator on right hand side was ...
0
votes
0answers
29 views

Structure of the output of a DynamicModule [closed]

I have a DynamicModule function which is used in a recursive function built with patterns. In order to understand how the recursive function works, I need to know ...
0
votes
0answers
31 views

How to draw a revolute joint and Prismatic joint? [closed]

and I want to add a bar on the surface of the blue cubiod so that I can move the joint with the bar. Also it's best to add a function code(a code to describe how it moves)
0
votes
1answer
23 views

Behavior of custom file chooser code changes when placed inside DynamicModule

My primary objective is to build a file chooser that aides a user in selecting files into one of two categories. Files can be individually selected, or based on the clicking of a specific checkbox, ...
4
votes
0answers
71 views

How to avoid the pink background in GUIs without using Quiet

GUIs may generate warnings while internal evaluations are processed. In this example I intentionally introduce a line that will generate a warning. Warnings are useful, so I don't want to quiet them ...
12
votes
3answers
547 views

How to anchor a Pane's scroll position to the bottom?

Suppose I have a Pane containing some dynamic text, for example that is being updated by a logging function. ...
1
vote
0answers
50 views

How can I perfect this game for Wolfram Demonstration publication? [closed]

When the messages change the window inactivates, and when I try to host an interactive CDF on my site it turns red and says something about numbers having to be scaled or offset. Any help? I'm ...
3
votes
1answer
82 views

Initializing Manipulator value within DialogInput (version 10.1 only)

Bug introduced in 10.1.0 I've confirmed, with WRI, that an issue was introduced in version 10.1 with regard to initializing Manipulator Dynamic values when the ...
1
vote
1answer
44 views

How can I get a manipulated parameter to show up with text next to it?

I'm trying to make a dynamic demonstration involving the $\epsilon-\delta$ proof of the limit, $$\lim_{x\to c}(2x-1)=2c-1$$ with the following code. d and ...
5
votes
4answers
203 views

Dynamic list in which the sum of the elements is invariant under changes to the elements

2nd Update Here's a snapshot of a graphical user interface I'm thinking. I hope this could be self-explanatory and demonstrate the functionalities I mentioned in the 1st update. Thank you all! ...
0
votes
2answers
70 views

how to use InputField function within the manipulate function

I am trying to make a demonstration that can take in a matrix and create a vector field. Currently I have the demonstration all functioning but to define the matrix it uses sliders. I know they cannot ...
5
votes
1answer
72 views

Dynamics and Block interfere

As mentioned by Albert Retey in a comment, we can unintentionally interfere with our dynamics as follows ...
1
vote
1answer
72 views

Slow program- Mathematica shuts down

I've been trying to draw dynamic pictures of level sets of certain polynomials. The code right now looks like that : ...
5
votes
0answers
88 views

Trouble understanding TrackedSymbols

While developing a relatively complex demonstration for Manipulate I encountered the problem that my output was unintentionally self-updating in an endless loop. ...
0
votes
1answer
50 views

Basic (?) dynamic module questions (If clause and refresh problems)

I'm building a dynamic module, but I'm stuck with a few things i don't know how to deal with. In particular I'm stuck with the "If" sentence and the refresh inside the dynamic module. Here's a ...
2
votes
1answer
111 views

How to write 1.0 in InputFields with ContinuousAction and Number constraint

With the concept of user responsiveness in mind, I’ve tinkered a couple of small apps that are supposed to be eh… responsive, i.e. calculating without having to press enter. They all rely on ...
3
votes
2answers
77 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 ...
2
votes
2answers
66 views

Why doesn't Quantity accept a Dynamic expression as a second argument?

If anyone can help me with this, it would be greatly appreciated. I'm using the following code with the intent of using controls to easily input values and units: ...
1
vote
2answers
57 views

How to show system busy during Dynamic with SynchronousUpdating -> False?

For long running evaluations in Dynamic it is recommended that SynchronousUpdating -> False be used to prevent time-out. ...
4
votes
1answer
95 views

DynamicModule issues with Refresh, double evaluation, and CDF Player preview

I am in the middle of making a CDF for a calculation of many random variables. I've gone with DynamicModule and have read the documentation plus these posts: 32294 ...
3
votes
1answer
54 views

Dynamic cells after Kernel restart/quit:

After quitting the kernel only one Dynamic cell fires. And it does not matter how many are there. ...
2
votes
2answers
592 views

How to make a Dynamic Calculator to solve a quadratic equation?

Taking my first steps in the world of Mathematica Programming. The aim of my program was to modify Wolfram's dynamic calculator (which performs an addition subtraction and a product - in response ...
0
votes
1answer
32 views

How can I make a RadioButtonBar that randomizes the choices each time a notebook is opened?

I have the following function for making a RadioButtonBar with randomized choices. The code is ...
0
votes
2answers
46 views

MousePosition and While loop Control, maybe Dynamic in While statement?

I would like to write a simple code that samples mouse position as frequently as the system can handle (with minimum dt) starting when the mouse position leaves a region and ending when the mouse ...
1
vote
2answers
86 views

Manipulate with multiple locators [closed]

How can I work with tables/lists of Locators under manipulate? Note this is very similar to this question: http://mathematica.stackexchange.com/a/51956/2079 The ...
12
votes
2answers
513 views

Syntax highlighter shows error for Manipulate when it's inside a Block or a Module

I'm putting my new copy of Mathematica 10 through its paces and I noticed a weird change in the colouring scheme that I find very annoying, and I'd like to get some insight into why it's happening. ...
1
vote
1answer
109 views

how to create Panel for Plot?

Can You advice me how to put the whole thing below into an interactive Panel, so I can values of parameters dynamically - type other values (alpha, beta, x0, y0, R, tmax) and plot updates ...
9
votes
1answer
94 views

How to synchronize the display of dynamic objects?

I was looking at this question, which asks to keep the orientation of some 3D graphics objects constant (relative to the viewer) while rotating the rest with the mouse. I thought that maybe the ...
3
votes
2answers
91 views

Toggle plot visibility of dynamic number of data sets

I have multiple curves in my plot, and want to be able to toggle their visibility off/on. Which I got to work thanks to a different post. ...
3
votes
1answer
733 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 ...
0
votes
0answers
25 views

How to use ScheduleTask in a dynamic module? [duplicate]

I have a little timer widget that times two separate tasks: It is simple enough, but I can't see why it's not working. Am I not understanding the connection between ScheduleTasks and Dynamics? ...
4
votes
0answers
64 views

What is the purpose of Refresh? [duplicate]

I never quite understood the point of Refresh. Why would I do this: Dynamic[Refresh[DateString[], UpdateInterval -> 1]] when it is the same as ...
8
votes
1answer
147 views
11
votes
1answer
277 views

Possible bug with second argument of Dynamic

Bug fixed in V 10. According to the documentation, Dynamic Details & Options section, especially: For interactive mouse operations ...
9
votes
3answers
240 views

Problem with CurrentValue[“MouseOver”] when graphics are wrapped with Deploy

Bug reproduced in: V 9.0.1 - 10.1 Please take a look at following toy example: ...
13
votes
5answers
955 views

How are parameters evaluated for a Plot in Manipulate

I am trying to get my head around how Manipulate evaluates functions in a Plot. I have read the introduction to Manipulate, and introduction to Dynamic, but I still ...
3
votes
1answer
59 views

How to stop a Dynamic[] in one notebook from hurting performance in another?

I have two notebooks open, one has a dynamic expression running (a simple clock) ...
4
votes
1answer
71 views

Automatically assign Variablenames to multiple checkboxes

I want to implement the option to import data from Excel and then the ability to trim this data in order to fit the needs. The import from Excel: (source) ...
12
votes
1answer
266 views

Why is my rasterized graphic blank?

Bug introduced in 7.0 or earlier, and persisting through 10.1 or later (OSX 10.10.2) Consider the following code: ...
1
vote
0answers
55 views

How to restart a Clock

The code below is to demonstrate color afterimages. The user chooses a color, fixates the changing numbers at the center until they reach 30 (seconds), then manually switches to white to observer the ...
0
votes
1answer
39 views

How do I get the bounds of my Slider to correspond to the current length of a string entered in another control?

I have a text entry control in a Manipulate that I index into the value of using the value of a Slider control. This works as ...