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

learn more… | top users | synonyms

1
vote
2answers
54 views

Unintentional function memoisation via Dynamic

I needed to display edge labels of a graph in a way that allows the edge labels to be moved. ...
2
votes
1answer
76 views

How do I constrain movement for lists of Locators using 2nd argument of Dynamic?

I need to display edge labels of a graph in a way that allows the edge labels to be moved. Locator seems the simplest and most obvious function to use. My ...
2
votes
1answer
85 views

DynamicModule with Plots and EventHandler

I am making a little animation in Mathematica, along the lines of some of the Wolfram demo projects. I'd like to animate a simulated trajectory of a random process (say a Poisson process), and while ...
2
votes
1answer
49 views

Dynamically Updating Function

I use Mathematica 8 and am working with DynamicModule. I'm trying to enter a function in an InputField then later apply it to two values entered in subsequent Input Fields. The function just does not ...
0
votes
0answers
36 views

Dynamic and Graphics3D crash in Ubuntu

Im running ubuntu 12.04 and sometimes mathematica 9.0 crashes when I have Dynamic Content or graphics 3d. I'm wondering if this has happened to anyone else? I wouldn't be surprised if this is a ...
3
votes
1answer
66 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. ...
1
vote
2answers
64 views

Is it possible restore initial values after modify a control in manipulate?

I used to program in Visual Basic, but in Mathematica I have not seen some kind of restore default values after any user modification command in the Manipulate ...
0
votes
0answers
20 views

How to get a number from a dynamic variable in “manipulate” [duplicate]

I did not find any satisfying answer to my question on this website (or I did not fully understood them as I am a quite new Mathematica user...) : So my question was: How can I get a real number (and ...
2
votes
0answers
86 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? ...
4
votes
2answers
152 views

TrackedSymbols affected by CurrentValue. Another problem with SetDelayed(:=)+OwnVales in Initialization

It is MWE, only a Disk[] that should print "Click" when clicked. Also "date... updating" ...
5
votes
0answers
35 views

How to robustly apply ToBoxes to a Dynamic expression?

Inserting a Dynamic object in a boxform expression messes up syntax colouring. See the following example. where the variable ...
7
votes
3answers
147 views
0
votes
1answer
73 views

Setting plot size within vector; dynamic slider (two part question)

I have a question about the size of a plot in mathematica. I'm working on some differential equations (a simplified model of heat transfer in a building). I've programmed it so that you can set ...
2
votes
3answers
195 views

How to create locked sliders with the ability of unlocking them?

This creates two locked sliders DynamicModule[{p = {2 π, 0}, r}, {Slider2D[Dynamic[r]], Slider2D[Dynamic[1 - r, (r = 1 - #) &]]}] How can I add a check ...
3
votes
2answers
164 views

DynamicModule/Dynamic CheckboxBar Slow for Large Lists

I am trying to create a dynamic construct that takes a large list of expressions and allows the user to interactively select any number of entries for further manipulation. This is what I have ...
4
votes
0answers
47 views

FlipView can't handle CurrentValue[“MouseOver”]. Kernel crash

Is this code crashing your Mathematica session? (it can so look out :P) ...
2
votes
1answer
76 views

Why can I edit only one character of the output of a Dynamic expression?

Try this: DynamicModule[{foo = \[Placeholder]}, foo] Note how we're able to edit the placeholder in the output, e.g. replace it with 42: ...
4
votes
2answers
111 views

Entering scientific notation in an InputField

I am trying to make an InputField for numeric input, but InputField[Dynamic[num],Number] Does not allow the user to type ...
0
votes
0answers
45 views

Show dynamic graph and plot together

I have a following code (sorry for the czech comments, if you wish, I can edit them to english) - it's an exercise for a monte carlo method lesson: ...
1
vote
1answer
136 views

dynamically set fit parameters and models with FindFit

I want to fit a gaussian profile by setting some values dynamically, but FindFit returns an error and i can't see the problem. with a given gaussian: ...
4
votes
2answers
125 views

DynamicModule updating unexpectedly

I have cut down a DynamicModule that was updating unexpectedly and found the following behaviour I don' t understand. If I do this I get one random value as expected ...
2
votes
1answer
67 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 ...
0
votes
0answers
46 views

Accessing variables outside DynamicModule

I have this DynamicModule which is basically a form of input fields that are parameters. My two final functions are H1 and ...
13
votes
1answer
211 views

Why does a variable become real when using the second argument of Dynamic?

Version 9, on Windows 7. Please compare these 2 very simple examples Manipulate[ x, Row[{Manipulator[Dynamic[x], {0, 10, 1/100}]}], {{x, 1}, None} ] and ...
8
votes
5answers
431 views

How to save Manipulate bookmarks permanently?

I would like to save current Manipulate parameter values to load them again later. Bookmarks (previously discussed here and here) work fine until the cell is ...
2
votes
1answer
123 views

Render dynamic Graphics objects static

As was discussed in the comments of another question (MathLink Graphical Output (Plots) to File), Graphcis objects produced by commands such as ...
2
votes
2answers
117 views

Solving a dynamic program via recursion

I'm trying to use recursion to solve a joint inventory/ dynamic pricing problem as in monahan, petruzzi and zhao 2004. I tried to solve for y[t] and ...
0
votes
0answers
42 views

Dynamically Update Inset within Graphics with RunScheduledTask

I followed the instructions given below to play with RunScheduledTask within DynamicModule. ScheduledTask with scoped ...
0
votes
1answer
101 views

GUI and Dynamic update problems

I have made many functions that connect to a MySQL database perform operations then export exel spreadsheet. I also import spreadsheet data into the database. I would like to get many of these ...
4
votes
1answer
102 views

How to inherit options by scoping?

Consider the following example: you have a function framed producing a cell with a button that, when pushed, calls framed again. ...
0
votes
1answer
86 views

Why do InputFields not respond in Manipulate utilizing FindGeometricTransform?

In the following code changing the InputField does not result in observing changes in a result from FindGeometricTransform, but ...
4
votes
1answer
81 views

Why does a heavy background slow LocatorPane from updating, even if only the locators are Dynamic?

I'm having some trouble getting a dynamic plot to operate efficiently, and I think I've tracked down at least part of the problem to some pretty weird behaviour on the part of ...
3
votes
1answer
133 views

How can I selectively trigger computations in Manipulate?

I have a Manipulate that uses RandomVariate and Random that I would like to have redraw and ...
2
votes
1answer
54 views

How to dynamically update a variable by using mouse over?

I want to extract the Graphics type when I hover my mouse over an object, but I failed to do so. Below is the code I am working on. Any suggestions are welcome ...
16
votes
4answers
394 views

How can I make an InputField with a proper newline/carriage return?

The return key does not work as expected in an InputField, how can I overcome this?
0
votes
0answers
55 views

Return Values from DynamicModule [duplicate]

I found the answer to my question here. How to extract the numerical value of a dynamical variable Is it possible to have the return value from a DynamicModule be ...
2
votes
0answers
32 views

Differences in SetDelayed (:=) in Module and DynamicModule [duplicate]

I have a question about the differences in SetDelayed assignment functions in a Module and in a ...
2
votes
2answers
81 views

DynamicModule with intermediate expressions

I am trying to generalize a Manipulate construct into a DynamicModule one to try and include smoother controls, but I seem to be ...
2
votes
1answer
79 views

Trouble using If[] within TabView Manipulate control

If I place an If in the "body" of a Manipulate as in: ...
1
vote
1answer
71 views

TabView switches tab number without user input in first evaluation

I've attempted to use TabView in a Manipulate to display sets of controls and alter a "display" associated with each set of ...
0
votes
0answers
67 views

Solving Delay differential equations in mathematica

Solving Delay differential equations in mathematica. The commands to determine a numerical solution for a nonlinear DDE using NDSolve,for example ...
3
votes
1answer
106 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 ...
8
votes
3answers
449 views

Logarithmic slider

Is it possible to create a logarithmic slider similar to this one that responds to a change of the variable value? That is, when the slider is moved, the variable value should update. When the ...
2
votes
2answers
83 views

How could I change the apperance of a button when some hard computation is finished?

I want to have some bottons inside manipulate to calculate some time consuming functions. For example the following code changes its color after the calculation of Total[Range[123456000]] is ...
0
votes
2answers
87 views

trouble with Dynamic range in SetterBar

It appears that I can set the range to a Dynamic variable in a Manipulate control, but not in a ...
2
votes
1answer
122 views

Dynamic [ NotebookEvaluate [“_”] ]

A nice way to centralize various tasks in one notebook is the NotebookEvaluation function. For instance I can evaluate ten notebooks from a single notebook (e.g. ...
2
votes
0answers
74 views

Is there a function similar to SQL's Iserror?

I have an output which I want to hide if there is an error otherwise display it. The output is a Dynamic[output] so I can't simply use something like ...
0
votes
2answers
218 views

How to get the associated popup menu?

I have threePopupMenu and they work in such a way that second PopupMenu value depends on the value selected by the first ...
1
vote
2answers
95 views

Rate of change of dynamic variable

I have made a program that goes like this, the goal is to estimate the remaining time of a function (it is running a bunch of solveChase[] functions with different parameters which can be seen in the ...
0
votes
2answers
104 views

Is it possible to monitor the sum of squared errors in a NonlinearModelFit or FindFit procedure during the process?

Since fitting procedures using NonlinearModelFit (or `FindFit) sometimes take very long, I would like to monitor the sum of squared errors during the process ...