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
240 views

Manipulate not showing anything

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

Manipulate keeps replaying the animation non-stop

I made a notebook with the following code, but for some reason when I evaluate it it keeps replaying repeatedly. What is causing this? Thanks. ...
15
votes
4answers
1k views

Mathematica Manipulate with macros AND variable number of controls (persistence desired)

This post about avoiding code duplication in Manipulate helped a lot getting as far as I did. The method of "macros" outlined there works excellent, but when the ...
22
votes
2answers
423 views

What is the equivalent of a prototypical Manipulate in lower level functions?

Background: In the Mathematica tutorial 'Dynamic Interactivity' I read that there is a way of developing GUIs in Mathematica that do not use Manipulate. I want to ...
13
votes
3answers
529 views

Particles bouncing in a 3D box

I made this Manipulate code which shows a pack of particles randomly moving inside a box. It has a huge performance issue. What should be the best way in doing ...
11
votes
2answers
770 views

“Reset” Button for Manipulate

I want to distribute a .cdf to my students wherein they manipulate 5 locators on a graph to define various shapes. The .cdf opens with the locators in a "nice" position, but of course it is very hard ...
5
votes
1answer
266 views

Control variable and body variable decoupling in Manipulate

This issue was raised as an offside problem in this thread. Consider the following example, that does not work as expected: ...
6
votes
1answer
558 views

Using more than one set of Locators in a Manipulate

I need to add locators dynamically to different sets. With one set this works OK: ...
5
votes
2answers
392 views

How can I create an interactive ColorFunction using Manipulate?

I am trying to specify my own colors and scaling for the ColorFunction in ListDensityPlot. I have several lists of 2D values ...
3
votes
1answer
145 views

How can I get “custom” controls to appear and behave like “default” controls in my Manipulate?

For various reasons I need to define some controls in my Manipulate with complex behaviors that are not (or at least I don't think can be) accomplished using the ...
12
votes
2answers
722 views

Restrict Locator to a certain graphic inside Manipulate

I would like to restrict the Locator inside Manipulate to a certain graphic. For example if I display two graphs, I would like to be able to click on the right one and use this information in other ...
11
votes
1answer
1k views

Manipulate (Linux version of Mathematica)

I'm runnning Mathematica 9 on Ubuntu 11.10. After installing CDF player I still have problem (most of time) with Manipulate. Only way I'm able to change value of a ...
8
votes
1answer
460 views

Locking a value when Manipulating variables

I'm trying to achieve something similar to Bret Victor's brilliant Scrubbing Calculator in Mathematica. By using Manipulate I'd like to change the values of the variables such that if I modify one ...
7
votes
2answers
1k views

Manipulating plot of random iterated function system fractal

I'm generating the Sierpinski Gasket by implementing a chaos game in Mathematica. What I'd like to do is create an interactive manipulation with a slider, whereby moving it forward, plots all the ...
7
votes
1answer
913 views

Placing Manipulate controls in multiple columns

I have a Manipulate construct with a square Graphic on the left side and all the controls placed on the right side. There are so ...
7
votes
1answer
212 views

Prevent interdependence of controls

My question is probably best illustrated with this small sample code: ...
5
votes
4answers
238 views

How should I deal with messages being produced by my Manipulate?

I have made a knockoff of John Polking's dfield for a web-embedded CDF (via Enterprise Mathematica). My code extends that from Belisarius who last year showed me how to use ...
4
votes
1answer
878 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
3answers
1k 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) = ...
2
votes
1answer
108 views

Entering an differential equation in a Manipulate box

Does anyone have an example of a Manipulate demonstration where the user can type into a box the differential equation, time interval, initial condition, and the result is plotted? This possible in ...
13
votes
1answer
535 views

Evaluation indicator for a notebook

I have a GUI with a number of TabView and other Manipulate controls. Sometimes clicking from one tab view to the other can take ...
11
votes
4answers
887 views

Manipulate BarChart with Mathematica

In the following minimal working example: Manipulate[BarChart[{a,b}],{a,1,2},{b,1,2}] I'd like to be able to control the size of the bars by using some sort of ...
8
votes
3answers
943 views

Plot3D in Mathematica: how to plot in presence of parameters

I realize I the earlier question was ill-posed. To clarify: I am trying to find the values of $A$ and $B$ that will maximize a function f on the domain ...
6
votes
2answers
163 views

Choppy curves with Manipulate [duplicate]

While manipulating the slider in Manipulate[], I experience choppy curves. These do however render correctly after letting go of the slider. The same phenomenon occurs when pressing the + or - button ...
5
votes
2answers
307 views

Manipulate: Play the animation only once and stop

I do small animations with Manipulate, but sometimes I don't like that it runs over and over again from start. I would like to have the possibility to stop the ...
5
votes
2answers
452 views

How to add graphics options to an already produced plot having manipulator?

I am new to Mathematica and stuck with one problem i.e. How can I add a graphics option to an already made plot which a manipulator to control itself. ...
4
votes
3answers
330 views

Altering values in Manipulate with dynamically generated controls

I have a Manipulate whose controls are generated based on a parameter in a containing Manipulate: ...
4
votes
4answers
316 views

Elegant Matrix Combinations

Suppose you have a matrix (mxn), simplified for illustration m= {{a, b, c}, {d, e, f}} And a set of combinations (simplified for illustration purposes but can ...
2
votes
1answer
105 views

How many arguments does a function require, and how to use that in `Manipulate`

The goal is to vary the order parameters in wavelet transforms in the Manipulate environment. The various transformations have arguments of different rank. For ...
2
votes
0answers
120 views

Substitute for 'InputField' in Wolfram Demonstration

My application relies on the ability of users to enter text, and has several settings with a huge range of potential values best entered as strings (to comply with Wolfram's admonition to "choose your ...
2
votes
3answers
242 views

Slider resistance and Play-Pausing with Manipulate, TabView, and attempt an granular TrackedSymbols?

Attempting to implement @Nasser's answer for How to avoid an expensive subset of a Manipulate computation when dependent variables have not changed?, using a ...
7
votes
1answer
144 views

Manipulate: strange behavior of Manipulator

Bug introduced in 10.2 and fixed in 10.3 Consider this simple code: Manipulate[n, {n, 1, 5}] When we evaluate it, we'll get Now try to click on the little ...
7
votes
2answers
202 views

Why aren't the locators independently enabled/disabled?

I am wondering why the Enabled setting for the first locator (point1) overrides the Enabled setting for the second locator ...
5
votes
4answers
270 views

Object isn't fully displayed in DialogInput

Update: Here's a simper example to reproduce the issue: DialogInput[Table[InputField[], {50}], WindowSize -> All] On my 1366×768 screen only no more than 17 ...
5
votes
1answer
226 views

Manipulate keeps updating due to a function

Edit: This is apparently only a problem on a mac running OSX. I am trying to use the 'stretchText' function by Jens. But when I use it in manipulate, the output keeps updating without changing ...
5
votes
1answer
565 views

Manipulate Plot and control variables using multiple controls

Here's a simple Manipulate example: ...
4
votes
0answers
91 views

Does ContourPlot3D leak assignments inside Manipulate?

Update 5 Aug 2015 -- Karsten 7. found a minimal example of leaking not involving Manipulate, so the role of Manipulate seems ...
4
votes
1answer
1k views

Embed CDF into an Apple iBook?

Edit From the comments I received and verifying the information about CDF at wolfram.com, it appears that it is presently impossible to embed CDF into iBooks. WRI does not appear to be happy with this ...
3
votes
2answers
174 views

Manipulate a 2D point controlled simultaneously by Locator and its coordinates

I'm trying to have a point in the plane which can be manipulated both using Locator as well as inserting its $x$ and $y$ coordinates. My attempts at doing this are: ...
3
votes
3answers
574 views

Animation is jerky, but slider is not

When I do the following simple animation (from the book Mathematica Navigator, p. 316) the slider control changes the image smoothly, but when I play the animation it is jerky. Is there anything that ...
2
votes
0answers
102 views

Mathematica 10.2 Manipulate function settings problem [duplicate]

I am trying Manipulate function in Mathematica 10.2. The problem is that when I move the slider the graph manipulates but when I click the + sign/expand button to ...
2
votes
1answer
92 views

Does DynamicModule cure Problem with Manipulate?

Hopefully, this is a final cure for the Problem with Manipulate introduced on A problem with Manipulate and then continued on Continuation of a Problem with Manipulate. Michael E2 suggested on the ...
2
votes
1answer
173 views

How to use Buttons to run alternate Manipulate functions

I wish to use Buttons to trigger alternate Manipulates. According to the documentation: "The first argument to Button is the label" ....and the "second argument is the function that will ...
1
vote
3answers
146 views
1
vote
1answer
77 views

Graph of second order polynomials [closed]

As I mentioned before, I want to write a notebook for teaching graphs of second order polynomials that shows discriminant and the conditions when a>0, a<0, having real roots, having no real roots. ...
1
vote
0answers
95 views

Possible bug with Manipulate [duplicate]

Bug introduced in 10.1.0 and fixed in 10.2.0 I am observing a potential bug not present in MMA 10.0.1.0 on Win 7 Ultimate, but observable on MMA 10.1 on Win 7 Enterprise. It seems to work with ...
1
vote
1answer
54 views

Module and Manipulate: Why the Red Highlighting? [duplicate]

If I define a function that returns a Manipulate object, and the Manipulate has a local variable inside of it, the local ...
1
vote
0answers
123 views

Simulations using alternative initial conditions

With help from some of you guys here in this forum, I have developed the following code, which works perfectly. My questions are: how to automate the simulations with varying initial conditions. In ...
1
vote
1answer
183 views

How to combine manipulate and eventhandler

I combine manipulate and eventhandler, now I can change the controller when working on eventhandler, but how to change the value in eventhandler when I control the manipulate controller? ...
1
vote
1answer
1k views

Why doesn't my Manipulate work?

I am new to Mathematica and reading my way through a few books. Playing around with Manipulate and I noticed the following does not work: ...