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

learn more… | top users | synonyms

3
votes
2answers
36 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 ...
1
vote
1answer
82 views
+50

How to keep Mouseover visible while control has focus/cursor?

I have a DateObject and InputField that I am using to collect an inputted date. Mouseover ...
2
votes
1answer
46 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 ...
6
votes
3answers
85 views

Can I disable specific items in a PopuMenu control?

I have a PopupMenu in a Manipulate with items in it that are inapplicable in some cases, and rather than removing them, I would ...
0
votes
0answers
88 views

Using Animate with ListPointPlot3D on more than one list

I have a couple orbits defined which have been mapped into one array as shown: ...
5
votes
1answer
43 views

Dynamically highlighting elements sharing common properties

I want to make a table of elements such that when the cursor is over a target element, all other elements of the table sharing some specified common property with the target are highlighted (let's say ...
11
votes
0answers
61 views

How to service preemptive computations while running a LibraryLink function?

Cross-posted to Wolfram Community The following is from the comparison between WSTP (MathLink) and LibraryLink in the documentation: When the Wolfram Language is waiting for a WSTP application ...
2
votes
1answer
61 views

DynamicModule not plotting intersection region?

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

How to make MousePosition more reliable

This takes a little patience to reproduce, but I got a screenshot of it in version 9 on Mac OS X 10.7.5: With a small Graphics object, it occasionally happens that ...
0
votes
2answers
118 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 ...
8
votes
4answers
234 views
129
votes
1answer
24k views

Mathematica Minecraft

Some time ago I asked myself: with all these great graphics and interactive capabilities of Mathematica, what kinds of 3D games can be implemented in it? And the answer which came to mind is ...
2
votes
1answer
136 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
1answer
48 views

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

This is an example from the documentation for Button : ...
0
votes
0answers
71 views

Loss of chart when exporting data in DynamicModule[Probleme solved by Update to 10.2]

In DynamicModule, the result is to show a panel with a flowchart and a piechart. But when I export the dynamic result in a CSV file, the piechart will no longer ...
1
vote
2answers
99 views

How to write a loop

I try to create a table which will describe traffic paths at a crossroads. Instead of using copy-paste repeatedly, I would like to write a loop. For example: ...
1
vote
2answers
39 views

Error Resulting from Placing a Dynamic Variable inside of Table

I want to create a list of values, True or False, and to update those values with a ...
2
votes
0answers
81 views

The most simple Manipulate freeze the notebook on v10.1

I realize this won't be a particularly clear question. As I'm not able myself to find a pattern for the problem I'm talking about I won't be able to give enough informations to make it fully ...
11
votes
1answer
2k views

How to work around Mathematica hanging when showing a large SparseArray?

Bug introduced in 9.0 and fixed in 9.0.1 In Mathematica 9, if I display any large SparseArray object in the default way (which looks something like ...
7
votes
2answers
99 views

Passing an unevaluated part of an association to a function

I'm making a UI widget that controls sound volume on a speaker using a slider, e.g.: ...
0
votes
1answer
35 views

StringJoin Dynamic problem [duplicate]

My goal is to import a XML file from the site fueleconomy.gov to get a list of cars dependent on the year given as the user input . Here is the code: ...
3
votes
1answer
220 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 ...
0
votes
0answers
29 views

How to show different DateListPlots with a popupmenu with different plot parameters

I bumped into the following problem: I have a relatively large dataset (250k row,11col), imported in from an SQL database. The format of the data is {{year,m,d,h,m,s},value}. I have successfully ...
5
votes
2answers
67 views

How do I maintain notebook state variables between front end/kernel sessions, if those variables are set programmatically rather than via UI widgets?

I need to give a notebook a few simple state variables (counters) that will be saved with the notebook, persist across kernel restarts, etc. From what I've read, using variables defined within a ...
10
votes
1answer
1k views

What does the message 'This file contains potentially unsafe …' mean and how serious is it?

I had some Mathematica files on over which recently I have faced to this message: However, after searching, I have seen some blogs in Mathematica SE or in somewhere else about that, but I could not ...
1
vote
0answers
26 views

DynamicModule - Bookmarks / Autorun menu?

Using DynamicModule in my code, I observed that there is no Bookmarks / Autorun menu (the small "+" in the upper right corner...). Is it possible to add it somehow and to make Bookmarks available only ...
4
votes
1answer
96 views

How to restart a Clock

The code below is to demonstrate color afterimages. The user chooses a color, fixates the changing number at the center until it reach 30 (seconds), then manually switches to white to observer the ...
3
votes
2answers
77 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 ...
6
votes
3answers
431 views

Locators in Manipulate not moving properly

I thought a simple Mathematica kerning machine (for adjusting the space between characters) would be interesting, but I'm having trouble with the locators. (There are a number of other questions ...
5
votes
2answers
86 views

How to make a notebook take action whenever a particular symbol is defined or redefined?

For teaching purposes, I want to create a Mathematica notebook that will "notice" when the user defines or redefines a variable or function of a particular name, so that it can check the value and ...
2
votes
1answer
125 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 ...
3
votes
1answer
63 views

Assign values to parameters from a list/Matrix using GUI

Assume there is a list like: ma={{L1,r1},{L2,r2}}; I want to convert the ma to a GUI which asks me about the values of ...
13
votes
1answer
135 views

How to retrieve current FaceForm?

The current colour in a Graphics object can be retrieved using CurrentValue["Color"] for use in Dynamic stuff. Example: ...
6
votes
1answer
93 views

How can I include functions from a package into a CDF file?

I am building an application which I would like to deploy as a CDF file, and I am struggling to make the CDF exports work correctly with functions pulled from a .m package file. What are good/best ...
1
vote
1answer
36 views

CellEventActions not working within DynamicModule

So here is some code that successfully displays a slider, the value of a dynamic variable, and cycles through a list of 10 images titled 'imgs' with keyboard commands. ...
1
vote
0answers
42 views

Ubuntu: Dynamics are not working after suspending system

I'm working on Ubuntu 14.04 LTS 64-bit and I'm running Mathematica 10.1. Usually, I don't turn my computer completely off but I'm using the Suspend function which is AFAIK a suspend to RAM. After ...
5
votes
2answers
81 views

Locator-based abscissa ranges widget

I'm trying to implement a widget that will enable users to graphically determine certain abscissa ranges in a 2D plot. I've started by coding a prototype, whose output looks like this: The idea ...
4
votes
1answer
76 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. ...
6
votes
1answer
94 views

Dynamic does not update when wrapped in DynamicModule

I'm trying to wrap some dynamic code into DynamicModule to localize all the variables, yet when I do that, the variables stop updating. That does not happen if I ...
1
vote
0answers
17 views

Value jump in Manipulate when opening input field [duplicate]

In working with some Manipulate functions, I have noticed an oddity when opening the "Show Animation Controls" icon. Here's a simple example that plots a sine wave, ...
8
votes
2answers
326 views

AJAX-style HTTP calls triggered by a variable change

I'm trying to create a dynamic InputField that would autocomplete the address as I type it into the field, by calling Google Maps' GeoCoding API on every change of ...
0
votes
1answer
52 views

Stopping sliders in Manipulate going to dynamic unfeasible regions

I am trying to use Manipulate to create a function which allows a user to play with a probability density. The following generates a static density over the range 2000 - 4000, then allows the user to ...
1
vote
1answer
92 views

ListPlot with checkboxes [duplicate]

I have imported data for several projects {prj1, prj2, ...} from an excel file, in form of {x,y} coordinates of points. I stored these data in variables and I would like to plot them, also having the ...
1
vote
0answers
73 views

Software Testing (Dynamic, Manipulate, DynamicModule) Interfaces

The main Testing Framework (in both the frontend and Wolfram Workbench) supports unit testing for command-line invocations. Is there a natural way of co-opting this, or perhaps there already exist ...
1
vote
0answers
80 views

Demonstration of an arbitrarily oriented and translated ellipsoid

(Edited and modified) After the advice I received I modify the post. I have created the following code for depicting an arbitrarily rotated and translated ellipsoid, along its ellipsoidal axes and ...
1
vote
0answers
49 views

Learning mathematica, ListPlot [closed]

I am trying to teach my self Mathematica. I am working with the following example: ...
14
votes
4answers
618 views

Button evaluation inside DynamicModule

Someone know why this Button works when clicked: ...