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

7
votes
4answers
133 views

Make which controls are visible in a Manipulate depend on a control value

I want to make a simple demonstration using Manipulate in which I have one or two input fields show depending on whether or not another control is True or False. How can I achieve such functionality? ...
7
votes
2answers
203 views

Moving controls from Manipulate to a Palette ( or similar GUI object )

Consider the following snippet as a reference. ...
7
votes
2answers
153 views

How to set the slider width inside Manipulate

I use the code below to visualise the connection between a sine curve and the unit circle, but would like to make the slider wider, so it has at least almost the same with as the image. I have tried ...
7
votes
1answer
130 views

Can I set 'no-go' values in a Manipulate slider?

Is it possible to easily modify a Manipulate such that the slider automagically skips certain values? For example, say I am plotting an equation that's perfectly ...
7
votes
1answer
250 views

Stopping Evaluation of Manipulate after it goes through once

I do quite a bit of textual analysis with Mathematica, and am currently making some Manipulate objects to walk people through key terms in the database. One issue ...
7
votes
1answer
182 views

Prevent interdependence of controls

My question is probably best illustrated with this small sample code: ...
7
votes
1answer
194 views

Make ControlActive respond faster within Animate

The following code uses Animate to create an animation that displays as {t, "Inactive"} when paused, and {t, "Active"} when running: ...
7
votes
1answer
231 views

How to wrap this dynamic code inside a Manipulate?

My goal is to set up a Ising-type simulation, where many fast simulation steps are done in the background, and a visualization of the current state is displayed as the simulation evolves, being ...
7
votes
1answer
564 views

How to eliminate the backward play in Export of Manipulate?

I find that the Export of Manipuate contains backforward play, see a simplified example: ...
7
votes
1answer
324 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
1answer
189 views

Can I select or implement a Manipulate bookmark from an arbitrary control?

I understand how I can select a bookmark from the "+" menu of a Manipulate. Is there a way to select a bookmark from an arbitrary control, or define a control that ...
6
votes
2answers
564 views

Formatted text in a Dynamic or Manipulate control

I am using a Manipulate control to show different calculations for the same user-specified parameters. I would like to show the results for the calculation the ...
6
votes
2answers
238 views

A command for outputting a list of parameter values in a Manipulate interface

I am looking for a command that will output a list of values that correspond to the current parameter values manually set on a particular Manipulate interface. For ...
6
votes
3answers
436 views

Changing background colour of a Manipulate element

Please consider the following: Manipulate[Plot[Sin[x (1 + a x)], {x, 0, 6}], {a, 0, 2}]; Now, I would like to change the background colour to yellow. I tried ...
6
votes
3answers
284 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 ...
6
votes
3answers
283 views

Using function with multiple definitions in Manipulate

I'm trying to use Manipulate to visually try out different values of lambda in a Box-Cox transformation. I've created a boxcox ...
6
votes
2answers
1k views

Export animation of a Manipulate autorun sequence?

I've got a Manipulate that does a vector field plot. Basically a function that returns a list of Graphics objects and a couple of sliders: ...
6
votes
2answers
204 views

Manipulators and Dynamic in more concise code

Is there a way to update dynamic variables through a function. I was looking back at one of the answers from Heike where she showed me how to make my custom ...
6
votes
3answers
300 views

How to use custom Dynamic inside Manipulate

I was wondering if it is possible to use a custom Dynamic[var, function] inside a Manipulate. The reason for the need is this: ...
6
votes
1answer
309 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 ...
6
votes
1answer
296 views

Why does Manipulate execute the expression twice?

When I execute Foobar[] in the code below and move a slider, the variable grad is printed twice. Why is this? How can I make the ...
6
votes
1answer
231 views

Interpreting text entry and splitting it in a Manipulate text field?

I have the following program that plots the number of trigram appearances across a corpus of textual information between 1964 and 1989 (apologies for the messy code): ...
6
votes
1answer
253 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: ...
6
votes
2answers
495 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 ...
6
votes
2answers
154 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 ...
6
votes
2answers
212 views

How to connect a checkbox with part of the graphics?

I'd like to have a checkbox in a Manipulate expression, governing whether part of the graphics is displayed or not. For instance, assume that I have a surface with ...
6
votes
1answer
329 views

How do I constrain the region where I can drag a Locator?

How do I constrain the region where I can drag a Locator to conform to rules, including rules that apply to computations resulting from the value of the ...
6
votes
1answer
176 views

How can I have interruptible computations inside a manipulate?

Here's a perfect example of my problem: Manipulate[Pause[n], {n, {1, 10}, ContinuousAction -> False}, SynchronousUpdating -> False] It is illustrated by ...
6
votes
2answers
164 views

Control which variables get embedded inside Manipulate

While trying to analyse several different datasets I got what I thought was a good idea: define a "function" that returns a Manipulate object. But this has some ...
5
votes
5answers
564 views

Subdividing a polygon , equivalent fractions

I see that I was a real "doofus" here and my original question was flawed. You can't divide a polygon like you can a circle or a rectangle, except in special cases... I should have seen that right ...
5
votes
4answers
395 views

Shading in squares crossed by a diagonal

You have a rectangle and it is diagonal. How many squares will be crossed by the diagonal (I guess assuming the side length of the rectangle are nice whole numbers) I've seen an implementation in ...
5
votes
4answers
252 views

Manipulate flickering and consuming lots of CPU

I am new to Mathematica and was experimenting with a simply problem of plotting a tangent to a curve and being able to move the point at which the tangent is drawn using ...
5
votes
4answers
470 views

Display position information out of ListPlots inside a Manipulate

I often have the situation where I'll use Manipulate[] to compare and examine 2 or more lists. A simplified example follows: ...
5
votes
3answers
233 views

Unexpected Setter Bar Behavior when Manipulate Nested in Dynamic Module

Consider this code: DynamicModule[{x, y}, x[t_] := t^2 + 5; y[t_] := t^3 + 5; Manipulate[Plot[fcn[t], {t, -5, 5}], {fcn, {x -> "Square", y -> "Cubic"}}]] ...
5
votes
2answers
186 views

Is it possible to manipulate FindFit

I was wondering if it is possible to manipulate a FindFit[] function. As a basic example, if I had an equation $ax^2+bx+c$ and a set of data, would it be possible ...
5
votes
3answers
366 views

Proper way to handle free variables in manipulate/plot?

It took me a while today to figure out that Manipulate (used with Plot) requires that the variable I'm manipulating be an actual ...
5
votes
1answer
175 views

How to add several Locators to a Graphic with a mouse click?

Background: Suppose I have something like this: ...
5
votes
2answers
106 views

Using absolute locator coordinates in Manipulate

In this simplified code below, I'd like to display two plots within Manipulate, and use the Locator controltype to set the value ...
5
votes
3answers
190 views

Switching among view points in a Manipulate expression

Edit: Some additional viewpoints were included to make it easier to test. Here's code for an alternative function, the graph of which is a bit less symmetric. Feel free to use either code set: ...
5
votes
2answers
246 views

How to dynamically update Locator[] constraints?

I need to visualize Menelaus' theorem for a triangle with moving locators for each of six points. So the vertexes of the triangle can move in any possible way, and the three points on the sides of the ...
5
votes
3answers
254 views

Question about modifying a Slider2D control

Background: I want to develop a custom control, based on a 2D slider. I currently have this ( working ) example. ...
5
votes
1answer
106 views

Place title outside of GraphicsGrid in Manipulate

I want to be able to place a text title centered just inside the bounding box generated by Manipulate yet above the GraphicsGrid and run boxes you see when ...
5
votes
1answer
144 views

How to stop Manipulate changing view point

When using the following manipulate I can rotate the plot and manipulate the value without my view point changing; ...
5
votes
2answers
154 views

How to present a Graphic and a Table in close proximity to each other

Often, with a Plot or within Manipulate I want to display a graph and, in close proximity to it, a table showing the results of ...
5
votes
2answers
285 views

Manipulate Evaluation Order Problem

I seem to be getting some unintended results from a nested Manipulate that I have not been able to resolve. I boiled down the problem I'm having to a simplified ...
5
votes
1answer
158 views

Integration of Two Manipulatable Cylinders

Introduction I created the following code to simulate the many possible interactions between a cylindrical protein crystal and a x-ray beam during serial femtosecond crystallography. ...
5
votes
1answer
159 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: ...
5
votes
1answer
197 views

Create a CDF file with a plot that cannot be edited by double-clicking

I have created a CDF file that contains a Manipulate object with a plot. I intend to embed the file in a web site, so that users can use interactive sliders to ...
5
votes
1answer
129 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
2answers
208 views

Building conditional lists with Manipulate

I'm trying to select elements of a list that satisfy some criteria using Manipulate[]. Given 2 lists: ...