Questions relating to the dynamic family of functions in Mathematica, such as Dynamic, DynamicModule and Manipulate.
4
votes
1answer
167 views
help with dynamic input
I'm trying to build a pop up window with i lines. Each line would read:
Number of neurons in layer 1:
Number of neurons in layer 2:
etc until layer i
The user would enter a numeric value on each ...
6
votes
1answer
184 views
Generating dynamic Inputfields
I want to create a bunch of input fields, four in this case, one for each element of the list "x", but since Dynamic has ...
5
votes
3answers
153 views
Creating a Tooltip that knows what platform is currently being used
I have Mathematica 8 on my PC. I also have a new Mac with CDF-player, but not Mathematica. I want a Tooltip that shows one thing if running on a PC, and something ...
7
votes
1answer
135 views
Asking for input in an event handler
Why won't
EventHandler["text", {"MouseClicked" :> (output = Input[];)}]
work?
When I click "text" the kernel hangs.
4
votes
3answers
100 views
17
votes
1answer
273 views
How can I interrupt Speak?
I want to use an event handler to stop speaking:
Speak[ExampleData[{"Text", "DonQuixoteISpanish"}]]
The only way I can stop this is by restarting mathematica!
2
votes
1answer
124 views
Multi-Selection dynamic menus
I'm looking to create dynamic menus with multiple options, and would allow multiple selections.
For example, mousing over an object (let's say a black circle of rad 1), a menu would popup at ...
4
votes
2answers
191 views
How can I emit a sound only during a mouseover?
Emitting a constant sound or note (no interruptions) for a fixed duration is easy, but a dynamic duration, not so easy.
3
votes
1answer
153 views
0
votes
1answer
163 views
how to dynamically change color of setterbar
I have a SetterBar with 3 values. I want that when I hover the cursor on any of the SetterBar value,it changes its color and ...
13
votes
1answer
395 views
Unique[] symbol not properly tracked
In a nutshell, why does this work (change y and see how the value updates)
...
2
votes
2answers
155 views
Dynamic lists as function arguments
Suppose I have a function that requires a list is as input. I.e.
f[list_]:=DoSomethingWithList
Now, if I pass a variable as Dynamic like this
...
5
votes
2answers
134 views
Creating a list of PopupMenus that dynamically update an element in a list
So as the title says I am trying to make a list where each element is determined by a users choice of an element in a PopupMenu.
My first attempt:
...
3
votes
1answer
301 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
148 views
Using DynamicWrapper with multiple Dynamics with different TrackedSymbols
I have two variables A and B that are linked such that changes to one causes the other to be updated to the same value. However at each change I'd also like to know which variable cause the update to ...
15
votes
1answer
368 views
Mouse motion heat map - live visualization and analysis
Mouse motion heat map is an great way to study spatial attention distribution, styles of movement, reaction, etc. I am trying to design a code that visualizes such heat map. The requirements: 1) It ...
0
votes
2answers
490 views
Basic Dynamic Interface Programming that returns variables to nb functions
I have a dynamic module that contains some basic PopupMenu's and Buttons but also need to use the variables returned from these buttons and PopupMenu's in my nb functions outside of this ...
-5
votes
2answers
206 views
Controlling plots with sliders without using Manipulate
Why are the sliders in the following code not affecting the plot? (Without using Manipulate)
...
4
votes
2answers
489 views
Using a Slider to manipulate a Plot
Why does this work (displays the curve):
Graphics[Plot[Sin[x], {x, 0, Pi}]]
and this doesn't (no curve)
...
5
votes
3answers
169 views
How do you properly create Buttons to change dynamic variables using Table
In this example, I want a series of four buttons to change the value of a variable that is used dynamically to drive a plot. I am trying to figure out why using Table around the buttons causes a ...
4
votes
1answer
106 views
Using Dynamic with UpdateInterval and EventHandler Together
I've been having some difficulty with the aforementioned use of these three functions/options and would greatly appreciate some help.
I know that they're is probably an easy way of making a disk move ...
1
vote
2answers
237 views
Making a plotted curve interactive
Is it possible to make a plotted curve interactive in the sense that when hovering over it a line is drawn from the "hovered" point to one (or both) of the axes. I did do my homework, I just can't ...
17
votes
1answer
343 views
How can I effectively performance-profile Dynamics?
How to optimize performance-wise a complex dynamic expression (like a GUI) with lots of dynamically updated components, which require different update-frequencies?
I was hesitant to ask this question ...
8
votes
2answers
174 views
Two-sided slider getting stuck
I'm implementing a two-sided slider to be able to set upper and lower bound in just one slider:
The problem is that it can get stuck when both locators are at the far left:
And I'm unable to ...
6
votes
2answers
250 views
How can I make a list animation of images that fade in and out?
I'm not sure how to get a "fade in" effect.
6
votes
2answers
154 views
How to access off-cell mouse position inside an EventHandler?
Consider the following example. First, I print the dynamically updated value of the actual position of the mouse, then I print pt, which is the same but is only ...
4
votes
2answers
190 views
How can one popup menu be used to add another?
I'm trying to construct a GUI that changes depending on what's chosen in certain popup menu's. For example: The default state of the menu is condition one, but when the first PopupMenu is selected ...
4
votes
1answer
110 views
Evaluation inside Button stops after some seconds
I would like to trigger a long calculation inside a dynamic module with a Button. It seems that the evaluation stops without an error-message after some seconds.
I made a test outside the a dynamic ...
4
votes
4answers
393 views
How to change color dynamically?
I am new to Mathematica and want to change the FillingStyle Dynamically in this Plot. I want ...
8
votes
6answers
306 views
How to make text flash for a short period
How could I display text that flashed red for a half second or so and then reverted to black? (Or was put in bold and reverted to normal, etc.)
7
votes
1answer
178 views
How to create a multi-selectable setterbar with colored buttons
Background: consider the following code-snippet.
...
8
votes
1answer
74 views
How can I defer the loading of a PopupView control until it is used?
Background: I have several PopupViews of which the loadtime adds to the startup time of a program. To improve the perceived performance I want to defer the loading ...
48
votes
2answers
2k views
How to manipulate 2D plots?
When it comes to visual analysis, large datasets or data with intricate internal details often makes plotting in 2D useless, as the outcome is either just a fraction of the full dataset, or no details ...
6
votes
1answer
225 views
3
votes
2answers
147 views
Can't get DynamicModule[{..},..EventHandler[] ] working
This makes a slider to control the number of points. Click in the Graphics and the points slide over to where you click.
...
7
votes
2answers
159 views
Moving controls from Manipulate to a Palette ( or similar GUI object )
Consider the following snippet as a reference.
...
6
votes
1answer
118 views
How can I make sure all InputFields have values before processing a nb form?
This is a two part problem:
I have a form that accepts both numeric and text inputs, then runs a function using a "process" Button. The issue I'm having is users that forget to fill out all of the ...
9
votes
0answers
219 views
How can I trace a functional expression's evaluation visually?
Ok, so the goal is to visualize the execution of this expression
foo /@ {3 + 1, bar /@ {1 + 2, {4 + 7}}}
in the following fashion using nested rectangles with ...
13
votes
3answers
537 views
How can I set the view vector in a 3D scene by tracking my face's position?
Faking 3D with 2D tracking data is something that I've long wanted to implement for use with my front facing laptop camera. A first step to solving this would be dynamically setting the viewpoint ...
8
votes
3answers
151 views
Intermediate display similar to PrintTemporary
Using MMA we often come across situations like the following
cityLIST = CityData[#, "Name"] & /@ CityData[];
This code if you evaluate will emit some display ...
10
votes
3answers
194 views
In InputField, how to prevent Shift-Return from generating a new cell?
When running the following in a notebook (not a deployed CDF file), it can sometimes be annoying that accidentally pressing Shift-Return breaks out of the user ...
12
votes
2answers
224 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?
35
votes
3answers
549 views
How can I set up a versioning system within a notebook?
Since the Frontend crashes a lot, for important work it would be nice to have the notebook automatically branch and save itself every so many minutes.
For instance, commands like ...
6
votes
2answers
158 views
Creating a slider that instead of setting, increases/decreases a variable
The objective:
Create a slider that, when displaced from the center, increases-decreases the value of another variable at a rate proportional to the displacement.
So, I create a slider that ...
10
votes
2answers
225 views
ShearingTransform and Dynamic
Background: I have a geometric transformation composed of a RotationTransform, ScalingTransform and ...
2
votes
2answers
179 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
67 views
5
votes
2answers
210 views
How to create a ListLinePlot with a layout analogous to ChartLayout -> “Stacked”?
I am using 3 checkboxes as desktops, portables and ipods in such a way that when I click to desktops it should shows ListLinePlot of ...
9
votes
1answer
171 views
How to create a notebook element that can replace itself?
I would like to create a notebook element that can replace itself.
Here's an example to illustrate:
...
10
votes
2answers
218 views
