Questions on the Manipulate function of Mathematica, a function that allows the interactive manipulation of certain parameters in a Mathematica expression.

learn more… | top users | synonyms

4
votes
1answer
224 views

“Show” with Manipulate runs fine normally, but gives errors as a CDF

I've simplified my code to what can reproduce my error. Basically, I have two lines: ...
4
votes
2answers
134 views

Thread[] seems to reset changes made with Manipulate[]

Recently I have been working on group theory and I have found checking for associativity for specific Cayley tables to be rather tedious so I wrote a program to do it for me. Most of the time I would ...
4
votes
2answers
119 views

Clicking to add/remove a Locator

I would like to add a Locator to a figure displayed by Manipulate when I click inside the figure, at the location where I click, ...
4
votes
1answer
246 views

Upon opening my notebook, I must evaluate cell for code to work properly

I am new to Mathematica. Once I evaluate the cell containing the code, my Manipulate works as desired; however, if I open the file and do not evaluate the cell, the Manipulate goes haywire. Can ...
4
votes
1answer
268 views

Mathematica's external controllers?

While reading the Manipulate reference I've noticed this line: What are the available external devices for that? Some months ago I was thinking on what would be needed to use a MIDI Controller ...
4
votes
2answers
113 views

Layers of Locators of Different Colors?

I am a Mathematica novice trying to do some interactive segmentation of microscopy images. I've been trying to understand and build upon some code from a previous StackExchange discussion (Can ...
4
votes
1answer
93 views

Dial control for Manipulate?

I'm trying to make a control item in a Manipulate that is a simple dial. I'm trying to mimic Manipulate[theta, {theta, 0, 360}], ...
4
votes
2answers
109 views

Anchor Manipulate Controls to Edges of Content

I'm running into an issue with arranging Manipulate controls and a dynamic module around the content pane of the Manipulate. For example: ...
4
votes
1answer
239 views

Manipulate Plot and control variables using multiple controls

Here's a simple Manipulate example: ...
4
votes
3answers
117 views

Graphics updating from inside double-Fold-iteration within Manipulate

Normally, when using Manipulate[expr, controls, options], the graphics updating should be carried out at the very end of expr. But now I encounter a situation ...
4
votes
3answers
152 views

How to dynamically change the Appearance of a control in Manipulate?

How can I dynamically change the appearance of b? Strangely it works for the Enabled state but not for the Appearance. Thanks. ...
4
votes
1answer
107 views

How can I highlight the vanishing-partials in an interactive 3D plot?

I am using Manipulate and Plot3D to plot a function with two real variables and two extra parameters. ...
4
votes
1answer
241 views

Automatically expanding sliders in Manipulate

Is there some way to have all sliders expanded by default in a Manipulator object, i.e. as if I had clicked all "+" signs?
4
votes
1answer
131 views

Why does one of my Manipulate integer variables get turned into a real?

I'm developing code for manipulating graphs. Spot the difference in the 2 Manipulates below: ...
4
votes
3answers
163 views

Manipulate: size of controls

As you can see in the drawing, I'm making a little Manipulate program. I'd now like to decrease the size of the controls at the left—to have more space for the ...
4
votes
1answer
262 views

Noticeable slowdown in graphical performance when using manipulate

I have been making these mathematica 3D objects that involve a molecule with some sort of surface displayed above them. This is done fairly easily by: ...
4
votes
1answer
156 views

Change CurrentValue of a key press

I was wondering if there is a way that I could change the value of a key press such as Shift, Ctrl, etc. Normally, when nothing is pressed, the CurrentValue will ...
4
votes
1answer
208 views

How to control variables of outer and inner Manipulates?

Consider the following ( working ) snippet: ...
4
votes
2answers
90 views

SetterBar divider style in Manipulate on a Mac

MMA 9.0.1 MacOSX "Mavericks". This issue is apparently mac specific. The issue of this post is illustrated here, for example. In a SetterBar control straight out ...
4
votes
1answer
198 views

'Play' button in Manipulation and slow evaluations

I'm trying to create animation of some discrete process using Manipilate: ...
4
votes
0answers
192 views

Modelling Hysteresis with a Differential Equation

I want to implement the bulk ferromagnetic hysteresis model (mostly the Jiles-Atherton Model), see http://drum.lib.umd.edu/bitstream/1903/6043/1/PhD_99-1.pdf page 44 equation (30). The needed ...
4
votes
0answers
138 views

DynamicModule, SaveDefinitions and global functions

Unfortunately, I had not checked stackoverflow, because there, the exact same behavior was already reported. Please see the Q&A "SaveDefinitions considered dangerous". Up-front, I'm on Ubuntu ...
4
votes
1answer
191 views

Manipulate a Plot that contains a variable that contains symbol [duplicate]

This snippet mm = m Manipulate[{mm, Plot[mm x, {x, 0, 1}]}, {m, 0, 1}] (m is not defined anywhere) produces a sadly fixed ...
3
votes
2answers
343 views

How to put some number of queens on chess board dynamically?

I asked how to make resizable chessboard in here. nickjamesuk help me . Here is the code. I thought I can put queens on the board chess board easily after created resizable board, but it didn't work ...
3
votes
1answer
201 views

Circular membrane vibration simulation

I'm new in Mathematica and I'm trying to simulate the vibration of a circular membrane for math project but I don't even know how to start. The wave equation describes the displacement of the ...
3
votes
2answers
93 views

Matrix of given size with unspecified elements

I want to generate a Matrix of given size whose elements are not specified I can use Array[a, {3, 2}] to get ...
3
votes
4answers
275 views

Change all Options of Plot Dynamically

I am trying to make a series of changes in the appearance of the Plot of some function. I am trying to use Manipulate for my experiments. I tried to change the following code ...
3
votes
3answers
109 views

Style changes between controls and graphics

In the following Manipulate, the style (font?) of the a changes between when it is a control label and when it is a label in the graphics. Is there a way to make ...
3
votes
3answers
116 views

Dynamic ListLinePlot

I have a list of lists looking like this: {{{x1, y1}, {x2, y2}}, {x1, y1},...}}. Furthermore I have defined a legend, which is taken from the filenames. Now I want ...
3
votes
2answers
213 views

How to make slider in/visible in Manipulate?

I need your help with making a slider invisible and visible in a Manipulate. Here is my code: ...
3
votes
1answer
155 views

Manipulate for probability distribution with multiple parameters, kernel smoothing

I'm looking to use the Manipulate command to take a distribution with multiple parameters (e.g., mean and sigma for the normal), generate some variates, then plot ...
3
votes
1answer
115 views

Controlling margin around PlotLegends

Here's my code: ...
3
votes
2answers
118 views

How draw a line dynamically using manipulate?

I want to paint a curve on a sphere while I’m manipulating stereoscopic projection points on the plane with a 2D slider, but I’m having trouble collecting the points needed to create the Line ...
3
votes
2answers
149 views

Dropping value of one variable when another changes

Context: There is a list of lists list where lists are different length. Using one control I change a part of list to view, and with another one — what certain ...
3
votes
3answers
677 views

Plotting heat equation in a Manipulate expression

I have a 2D heat equation $u_t = \alpha (u_{xx} + u_{yy})$ with conditions: $u(x, y, 0) = 300$, $u_y(x, 0, t) = \mu_1(x)$, $u_y(x, 1, t) = \mu_2(x)$, $u(0, y, t) = \mu_3(y)$, $u(1, y, t) = ...
3
votes
2answers
232 views

Why does the syntax highlighter color a local symbol red inside DynamicModule?

I am adding a Module inside DynamicModule here is an example (thanks to @rm-rf for this simple example) ...
3
votes
2answers
783 views

Why is my animation so slow?

I have an animated plot of the kind ...
3
votes
1answer
153 views

Manipulate not showing anything

This works: Manipulate[Plot[2*x + 3*y, {x, 3, 4}], {y, 3, 4}] But this doesn't ...
3
votes
2answers
375 views

Question about making TabView remember what tab to open

Background: Consider the following ( for the purpose of illustrating this question ) simplified, but working snippet of code. ...
3
votes
1answer
223 views

How to programmatically create a Manipulate in another Manipulate?

Background: the following Manipulate works as expected ...
3
votes
1answer
245 views

Feed a Manipulate[] Output into a Graphics[]

Please consider : ...
3
votes
1answer
145 views

Manipulate with formatted output

I would like to have 4 output fields for something like the following: Manipulate[ n*x n/x n + x n - x, {n, 1, 10}, {x, 1, 10}, ControlType -> InputField] but ...
3
votes
1answer
421 views

Combining Two Manipulated Plots Dependent on Same Variables

I need to combine two plots on the same graph to highlight the intersection of the two while being able to manipulate various parameters that are common to both functions. I need to have the slider ...
3
votes
2answers
199 views

Export in Manipulate, infinite loop

I want to make export of a plot inside Manipulate, but only once. However, this code runs infinitely and does export infinitely: ...
3
votes
2answers
236 views

In a Manipulate[], control timing of Autorun

I've made a gauge like instrument that will get used to prompt someone to maintain rhythmic breathing patterns during heart/brain coherence training. ...
3
votes
1answer
166 views

Manipulate and FileNameSetter don't want to play nice together

In a Manipulate, one can specific the type of an individual control like so: Manipulate[v, {v, Red, ColorSetter}] I tried to ...
3
votes
2answers
977 views

Combining manipulated plots

Let's say I have two manipulated plots: Manipulate[Plot[Sin[a x], {x, 0, Pi}], {a, 0, 10}] Manipulate[Plot[Cos[b x], {x, 0, Pi}], {b, 0, 10}] How can I create a ...
3
votes
1answer
108 views

Switch inside Manipulate controls statement

I am using this code inside of a Manipulate: ...
3
votes
1answer
134 views

Mouse click on BarChart elements

What I would like to do is explore a data set by clicking on elements in a BarChart. I have some existing code which uses a manipulate which I was hoping to modify. ...
3
votes
1answer
166 views

Change values in equation with slider

I want to make an equation where the values adjust to my slider which I inserted with manipulate. Well, I tried, but when I use the slider the equation starts to fall apart. Actually this should ...