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

learn more… | top users | synonyms

2
votes
2answers
94 views

Dynamic updating of Slot number [duplicate]

I want to change the slot number inside Manipulate[]. Here is a minimal example which does not work: ...
2
votes
1answer
148 views

How to mimic Org-Mode with cell dingbats?

I love using org-mode to organize my to-do lists, the functionality is amazing, but it suffers from being stuck inside the emacs terminal... I'm hoping to replicate some basic features into a ...
2
votes
2answers
104 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 ...
2
votes
1answer
243 views

Buttons Which Change Color, Each Time Pressed [closed]

I need to have 100 buttons, which their color is defined by the parity of number of times they are pressed: If they're pressed an even number of times their color is blue, and otherwise red. I don't ...
2
votes
1answer
172 views

Remove braces, {}, from around DynamicModule output?

Is there a way to remove the braces from the front end output associated with DynamicModule? For instance: ...
2
votes
1answer
192 views

Change the behaviour of a LocatorPane

Normally, LocatorPane detects any single click as in the following example: ...
2
votes
2answers
423 views

How to prevent errors in Manipulate with ListPlot when a result is an empty list?

I am trying to plot two lists, where one is the reference list, and the other is only used to select and highlight the first list. Basically, I want to use the selection list ...
2
votes
1answer
246 views

Undocumented Dynamic Function question

In the code below the value displayed next to the slider may be correct, and should be the result of The value of x for cyL and ...
2
votes
1answer
100 views

Building a two-player game

I would like to make a MMA version of this game. Modifying @belisariusisforth's code from this answer, I get ...
2
votes
3answers
97 views

ClickPane that shows or hides controls when clicked

I am trying to modify the parameters of a system by clicking on its graphics. I am using ClickPane with DialogInput. A code ...
2
votes
2answers
181 views

How to do dynamic range selection for data fitting in Log plot?

In linear plot, this can be achived by Locator like this: http://mathematica.stackexchange.com/a/24935/13580 ...
2
votes
1answer
127 views

How can I use parts of lists with Dynamic?

I'm a newbie - what am I doing wrong? I want to use parts of lists (vectors) in calculations but Mathematica will not evaluate anything that involves parts of lists that update dynamically. Is there a ...
2
votes
1answer
132 views

Multiple plots using dynamics

I am studying Dynamic and DynamicModule, and I have tried to make a simple plot of a family of real functions. The number of functions should be a dynamic variable controlled by a slider. So I have ...
2
votes
2answers
123 views

How can my Manipulate be aware of a local variable inside a nested Module

I have 3 sets of 5 x-y points: RandomInteger[10, {3, 5, 2}] I want to display only one set of points at a time, and use a slider to move on to show the next ...
2
votes
2answers
122 views

Why isn't Refresh working as expected? [duplicate]

This seems to me to be a very easy question, but I can't seem to figure it out. Instead of updating every 1 second, it auto-updates as quickly as possible. ...
2
votes
1answer
140 views

Two controls to Manipulate all elements of a list

Say, I have a list list and I don't want to assign different names to all its elements. What I want to do it to be able to interactively manipulate any of the ...
2
votes
2answers
154 views

How to control Manipulate speed

I want to ask about how can we control Manipulate function so that it is not incrementing the step until the expression is calculated. I have the following simple ...
2
votes
1answer
284 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 ...
2
votes
1answer
87 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 ...
2
votes
1answer
114 views

Manual CellGrouping option causes crash at cell evaluation

Update: Try to reproduce this behaviour with CellGrouping set to manual. To do that: either evaluate ...
2
votes
1answer
299 views

Why is this expression being held, and how can I evaluate it?

I can't figure out why an expression isn't evaluating, even though there's no Hold* in its FullForm: ...
2
votes
2answers
262 views

Adding Dynamic functionality to a Graph

I would like to make the edges and vertices of a Graph interactive, a simple demonstration is to change their colors: ...
2
votes
2answers
426 views

Create list via checkboxes

I am trying to achieve the following: Three (dynamically updated) Checkboxes (a, b and c) can be toggled on or off individually. Depending on their status, a ...
2
votes
1answer
307 views

Combining two notebooks

I have a notebook which contain all the variables and defined functions. I want to do two tasks. As an example, I want to find the density and energy which have equations in terms of above mentioned ...
2
votes
1answer
108 views

How do I make an EventHandler non-responsive to MouseMoved after a mouse click?

Consider the following code. After evaluating it, when I move the mouse over the output text, it prints 1, and when I click the mouse on ...
2
votes
3answers
175 views

How to change FieldSize to be the same as dropdown menu width in PopupMenu?

I've tried the following code to change the FieldSize but I can't make it equal the actual value of MenuSize and I tried to ...
2
votes
2answers
383 views

How to format dynamic InputField value using NumberForm?

Background: I want all numbers in InputField's displayed as NumberForm[num,2]; Now, consider the following the snippet of ...
2
votes
1answer
101 views

PaneSelector and options in a Module

Consider the following snippet of code: ...
2
votes
1answer
142 views

Creating a function takes a list and dynamically modifies that list [duplicate]

I'm trying to create a function that uses a dynamic locatorpane to populate a list with the coordinates of user defined locators (added by alt+clicking). This code works fine: ...
2
votes
1answer
93 views

Interacting with the vertices of a polygon and points on a circle

I want to create an interactive module, where I can plot the vertices of polygon and some points on a circle(for example, suppose a triangle and 3 points on the circle) and move the vertices of the ...
2
votes
1answer
92 views

DateListPlot inside DynamicModule updates continuously

Can any one try this code and see if it is updating continuously without changing the controllers: ...
2
votes
2answers
38 views

Specify only one jump direction of LocatorPane

Considering LocatorPane: LocatorPane[pts,back,{{xmin,ymin},{xmax,ymax},{dx,dy}}] Is there any way to specify only the jumps ...
2
votes
1answer
86 views

Dynamic update of displayed quantities on a Plot within manipulate

I'll admit that I only skimmed some other threads about this. They seem rather complicated in contrast to my simple problem. I have two lines in space defined by a two-by-two coefficient matrix. I ...
2
votes
1answer
59 views

Dynamic ViewPoint on notebook startup

(This is a follow-up question to the accepted answer found here.) I want to synchronize two 3D plots in a notebook by setting their ViewVertical and ...
2
votes
2answers
140 views

Dynamic visualization of two histograms

I have two histograms histo1 and histo2: ...
2
votes
1answer
106 views

Pausing a dynamic display

I'm trying to display some graphs, which were defined with plot above this line of code. The parametric plot moves through all of the x values, the others are stationary. I would like the parametric ...
2
votes
1answer
111 views

Multiple dynamic equations for plotting?

Say I have a bunch of equations between variables e.g. h=bcd, i=hce, j=ihbd, ...
2
votes
1answer
82 views

DynamicModule not plotting intersection region?

I am trying to show and calculate the area of two overlapping, shifted hexagons using the following code: ...
2
votes
1answer
781 views

Why is either Listable or HoldFirst not working?

Starting with a fresh kernel, I evaluate the following: ...
2
votes
1answer
137 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
264 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
165 views

Input[] inside DynamicModule causing a kernel crash [duplicate]

I have those few lines of code causing a crash and I can't figure out why: ...
2
votes
2answers
780 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 ...
2
votes
1answer
186 views

How to control dependent PopupMenus?

I created three interdependent PopupMenus with names demographic, region and ...
2
votes
2answers
201 views

How can I create CDF applications which adjust their screen dimensions based on the end-user's display configuration?

I am trying to make a CDF application that takes the user's system information (screen information) and adjusts the size of the application to give a seamless experience over different screens with ...
2
votes
1answer
63 views

Create a notebook and save it without prompting Dynamics

This is closely related to the recent: Creating self destructing notebook. However the answer doesn't work in my case. ...
2
votes
1answer
57 views

$CellContext issue while trying to export the current output of a Manipulate

Having just read this question Getting variables out of Dynamic Modules after restoring the program and the Kuba's answer I'm trying to optimize my workflow. I'm writing a Mathematica notebook to ...
2
votes
1answer
58 views

DynamicModule endlessly updating unexpectedly

I've encountered an error using DynamicModule to show results of some numeric or symbolic solving algorythms (I've tried ...
2
votes
1answer
43 views

IntervalSlider MinIntervalSize dependent on another control

I would like to achieve the effect of the DynamicModule below using a Manipulate. Several of my attempts failed. I could not get MinIntervalSize to recognize the dynamic variable. Is is possible to ...
2
votes
1answer
79 views

ListPlot dynamical problems [closed]

I have Manipulate, where there are FileNameSetter(to load file with data points) ...