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

learn more… | top users | synonyms

2
votes
2answers
98 views

Dynamically sized $n\times n$ checkboxes corresponding to a matrix

I was wondering if it was possible to do to following: have an input field for an integer where you input the $n$ have an $n\times n$ matrix of checkboxes that would correspond to an $n\times n$ ...
2
votes
1answer
89 views

How can I get dynamic control over the domain of a contour plot? [closed]

I am trying to plot a specified contour of my function of two variables. I call ContourPlot with my function as follows: ...
0
votes
0answers
53 views

All Graphics3D commands crash

Recently updated from Mathematica 8.0 to 10.2 running on Windows 7 (8.0 was uninstalled before installing 10.2). Anytime a 3d graphics is rendered, the first rendering in a notebook is completely ...
0
votes
1answer
26 views

Displaying each element of a varying sized list one at a time [duplicate]

I am trying to take a user's input, which will determine as list of results. I would like to show that list to the user, one result at a time. Something like the following (which is broken): ...
6
votes
1answer
156 views

Constrain Locator to specified region

How can I constrain the locator to stay within the region defined by RegionPlot? When the Locator remains within the region, <...
0
votes
0answers
24 views

Make an existing solution for monitoring parallel jobs robust against dying kernels

Is there any chance to make the solution by @David here http://mathematica.stackexchange.com/a/1562/21606 more robust in the following sense: In my case, some parallel kernels die regularly during ...
0
votes
0answers
31 views
2
votes
0answers
64 views

Interface design to replace cascading dialogs which don't work

I would like to make a nice Interface of a simulation I wrote, but i don't know how. I want that you run the code and then a window asking for input of some values appears (either in the same ...
6
votes
2answers
77 views

Annoying behavior of a dynamic angular gauge

I want to do something that can be simplified into the following toy example: I want to dynamically show the count down to a future date on an AngularGage. The ...
2
votes
1answer
34 views

Delete Cell Inside of Module

I want to print a dynamic output while some code is running and then automatically delete it when when the output is done. PrintTemporary is not quite what I am looking for -- I want the output to be ...
3
votes
1answer
161 views

Drawing dynamical trajectories diagram in Mathematica

I've a Boolean gene regulation system composed of vectors(corresponding to cellular phenotypes). Their components are binary numbers such as $\{1,0,0,1\}$. A vector can change its statement in ...
0
votes
1answer
66 views

Dynamically update three graphics simultaneously

I have a problem. How can I get three arrows in to update simultaneously? All work, but one by one. ...
0
votes
3answers
82 views

Manipulate with dynamic input

I really new to Mathematica and I am working on developing interactive CDF. To understand the basics I start with a simple example but even with that I have a problem. In this simple CDF I want to ...
3
votes
0answers
166 views

Neural network playground

I came across this Neural Net Playground demonstration based on Google's Tensorflow package. It visualizes the data processing inside a neural network and allows you to tweak parameters and ...
6
votes
2answers
77 views

Abort an EventHandler?

How do I stop an EventHandler? I'm trying to allow the user unlimited inputs on the arrow keys UNTIL certain conditions are met, and then stop the ...
1
vote
0answers
40 views

What is a simple way to enumerate all potentially unsafe dynamic objects in a notebook or cdf? [closed]

What is a simple way to enumerate all potentially unsafe dynamic objects in a notebook or cdf document? The objects, whose presence generate an alert in a form of ...
3
votes
0answers
96 views

Preventing the content of a CDF report from being overwritten when multiple reports are open at once

Our Mathematica application obtains a group of input files, analyzes them and generates a report in a form of CDF document. The report contains multiple dynamic/interactive graphs and tables. To save ...
0
votes
1answer
49 views

Stopping variable from being updated by dynamic

I'm trying to write a script that will dynamically update, except for one variable, say y in a block Dynamic@F[x,y] So that ...
6
votes
0answers
73 views

Generating OpenCL C code [closed]

I'm trying to make an interactive complex function plotter using OpenCl. So far I can only plot functions that I hardcode into the kernel by hand. I'd like to be able to use ...
4
votes
2answers
59 views

Dynamic Tooltips displaying cell contents

I'm working on a piece of code that would allow me to make tooltips displaying contents of another cell (EquationNumbered style). ...
2
votes
1answer
149 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: ...
0
votes
1answer
33 views

How to avoid improper update of Dynamic in a Dialog?

I want to request user input of an expression of f(x) from a dialog and then use ToExpression on the input. Questions: When I execute the code below, I got r ...
5
votes
2answers
78 views

A locator that is visible only when it is used

I want to construct a graphics with a locator on top of it. This locator normally has to be invisible, but when I click somewhere in the graphics, the least that has to happen is that the locator ...
5
votes
1answer
81 views

Blocking dialog with a blocking child dialog

Suppose I have a DialogInput, in which there is a Button. The Button can trigger another <...
2
votes
1answer
79 views

Module vs. DynamicModule in a custom plot function [closed]

In my Mathematica work flow I move often used functions into a custom package (.m file) at some point. Since I like the features of the CustomTicks package, I have a collection of custom plot ...
1
vote
0answers
45 views

Frontend flickering [closed]

The front end is flickering on hyperlink mouse-over events: Is there any way to avoid this, or any option that could boost the front end's frame rate for mouse related dynamic events?
5
votes
4answers
221 views

How to make a panel disappear?

I would like to make a panel look like a ChoiceDialog. Let's say a have a panel like this: ...
0
votes
1answer
44 views

Type of Dynamic object and GUI-construction for file import [closed]

It's not clear what the Dynamic objects really are. For example, if I define the following x=1; Dynamic[x]; y=Dynamic[x]; we can see that all the three are ...
2
votes
1answer
71 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. ...
47
votes
2answers
725 views

Guidelines for planning custom GUI in Mathematica

This post is here to save your time during GUI development in Mathematica. And one way to do this is to know where limits are and to be aware of features that are awaiting. Background Usually I don'...
8
votes
1answer
926 views

Creating self destructing notebook

Inspired by this post I've been trying to implement the idea in Wolfram with no success yet. I've come pretty close though and need some help. So I've managed to do this: ...
1
vote
1answer
62 views

How to include Initialization in DynamicModule

I want to learn some of the basic rules for construction DynamicModule code. I have looked at Kuba's post and feel overwhelmed by it. My ultimate goal is to use ...
4
votes
2answers
81 views

Force ExplicitEuler Method of NDSolve to produce simple “connect the dot” plot

The code plots the solution to an ordinary differential equation (ODE) on its corresponding vector field by one of two methods: (1) click on an initial point of the vector field or (2) keyboard entry ...
22
votes
0answers
263 views

How to design CloudObjects with reasonable CloudCredit costs

Note: I originally thought to post this as a non-answer/extended comment to this question; however I feared that I would end up hijacking the original question. It is likely a duplicate with the ...
14
votes
0answers
135 views

Current (e.g., ca. 2016 / MMa 10 / WP 4+) best practices for embedding interactive content in WordPress?

My strategy, in the past, has been to embed interactive CDF files into my WordPress blog for student's to use (Much like the Wolfram Demonstration Project). As many know 1) the 'Plug in' ...
1
vote
2answers
104 views

Incompatibility between Dynamic’s second argument and Wolfram Demonstrations

A central feature of the Wolfram Demonstrations is the use of multiple instances of the Manipulate output, placed into the Thumbnail and Snapshots sections – for instance here, that are used to ...
6
votes
2answers
123 views

Issues with Dynamic's second-argument functions

First: According to the documentation Dynamic[expr,f] evaluates f[val,expr] during interactive changing or editing. Now check ...
8
votes
1answer
97 views

What is the equivalent of $ModuleNumber for DynamicModule

Mathematica provides access to $ModuleNumber which can be enormously useful. Unfortunately I can't find the equivalent for ...
2
votes
1answer
62 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 ...
7
votes
1answer
100 views

How to interactively transform an image (rotate / translate / etc) on a per-component basis?

I have binary images like this one and I want to be able to interactively select its components and rotate them around its centroid by a different angle for each component. I may also want to ...
6
votes
1answer
61 views

ControlActive doesn't distinguish the active element in list-based controls

There are three controls in the following code: the first one is a "stand-alone" one and the other two are based on the list angle. When one of the "angles" becomes ...
2
votes
1answer
66 views

How to make a set of interdependent popup menus work?

Here is my code that is not working. ...
5
votes
2answers
74 views

Creating a warning before executing a function if not cancelled?

How could I create a warning dialog that executes a function if not cancelled after a delay ? Also I would like the time remaining before execution to be displayed and the dialog to be non blocking.
0
votes
0answers
61 views

Why does this code produce an infinite loop?

I can't understand the way this code behaves and suspect that is because of some unrecognized reasons of general interest. Otherwise, I apologize and will retire the question. In ...
1
vote
0answers
186 views

Pitfalls of running multiple Mathematica kernels?

I've recently started running long calculations in one Mathematica kernel while I continue to work in another kernel. I thought this was safe, but yesterday I was running THIS CODE in which a ...
0
votes
2answers
64 views

How to set dynamically stylesheet definitions?

To produce good color schemes for styling notebook I was used to generate a grid of controls ...
3
votes
1answer
52 views

An issue regarding the use of CopyToClipboard with dynamic content

Please, consider the following code: ...
11
votes
1answer
103 views

Speed up Dynamic for graphical interface

I am trying to create a user interface where I can click on certain points in a set of data and save them into a list that can be used later in my code. The problem is it is currently sluggish. Is ...
2
votes
0answers
51 views

Mathematica for dynamics and controls [closed]

I am new to Mathematica and want it to use for dynamic and control systems. To begin with, I would want to be limited to symbolic computation for linear and nonlinear control systems - including ...
2
votes
1answer
100 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 ...