# Questions tagged [manipulate]

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

1,816 questions
Filter by
Sorted by
Tagged with
1k views

### What causes Manipulate to stop evaluating expressions?

I'm working on a N-body simulation within Mathematica, and currently I have something along these lines: ...
162 views

### Is it possible to embed the Manipulate into a WordPress post?

I have a Manipulate object: Manipulate[n, {n, 1, 100}]. I want to put it in my WordPress blog post. Should I ...
311 views

### How can I add column-rearrangement-by-mouse-dragging to my dataset display function?

A subject that I seem to take at heart... I was expecting an upgrade of the default Dataset display in MMA 10.3.1. It did not happen. Among the features I would have liked to see improved is a better/...
1k 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 ...
777 views

### Manipulate changing controls

Is it possible to use Manipulate and Switch to change the Manipulate controls? ...
1k views

### Moving From Dynamic Module to Manipulate

In trying to implement Vitaly's suggestion about how to take control of Locator events, I have been able to make headway using ...
267 views

### How to allow ContinuousAction on something that is not all

I have this code: DynamicModule[{r = 1}, Grid[{{Slider[Dynamic[r]], SpanFromLeft}, {f[Dynamic[r]], g[Dynamic[r]]}}]] While I move the slider, $f$ ang $g$ are ...
221 views

### How to partition a square into successive halves

I am teaching the idea of infinite geometric series to high school students, looking for hints to create the diagram below using Mathematica. (I don't need the labels). I can do it manually, but ...
6k views

### Manipulate using a variable defined outside of the manipulate function [duplicate]

I want to do something like this: expr := x^e; Manipulate[Plot[expr, {x, 0, 4}], {e, 1, 3}] But the plot shows up empty. Yes, it works if I do: ...
2k views

### For[] or While[] can't be used inside Manipulate[]?

Here is a code sample that creates a control object which calculates the expressions inside Maniplate again and again and never stop (it's proved by the code in the ...
1k 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 ...
364 views

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

Consider the following snippet as a reference. ...
273 views

### Circumnavigating a curve or going through it to show different behavior

I am not sure if what I want to do is possible in Mathematica. I've provided something simple below to convey what I want to do. Basically what I want to happen is that when the ...
736 views

### saving Manipulate data inside a notebook

I want to send a few Manipulate Plots and regular plots to my advisor in a notebook. I ...
955 views

### Logistic Equation

I have a Mathematica assignment where we need to solve a modeling population growth I have managed to come up with this for the representation of the equation in Mathematica: ...
706 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 ...
1k views

I want to use Manipulate (I am open to other alternatives) to apply one of two different functions f or ...
164 views

### Question about scoping data in a multi-level Manipulate construction

Background: In a module containing an outer / inner manipulate I select the key of data with a dropdownlist in the outer manipulate. Data is read and displayed in the inner manipulate for edit ...
329 views

### Using Checkboxes to return a list

There is probably either a Tutorial or a dupe I can read in order to figure this out, but I haven't been able to find one by searching on my own. So here is the problem: I want to create a function <...
1k views

### Using Manipulate to vary the frequency of a sound produced by SoundNote[]

I have tried various ways to combine Manipulate and Sound/SoundNote that would allow me to vary the frequency of a sound while it is being produced. The addition of Dynamic didn't help, but did ...
204 views

### Create dynamically Manipulate buttons to come back to current parameters

I would like to create dynamically buttons in Manipulate in such a way that after clicking the button the Manipulate parameters would come back to the values when the button was created. In my example ...
282 views

### Panning with Mouse + Moving A Curve

I would like to be able to move any curve (for example f(x)=x, or g(x)=x^2) by mouse dragging the particular curve. I would like to keep the functionality I have for panning across the screen in ...
882 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: ...
1k 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 ...
230 views

### Momentary Checkbox

I'm trying to create a demonstration in Mathematica where a checkbox will show an answer, but I only want the answer to be shown while the mouse button is pressed. There seems to be a ...
967 views

### Combine a dynamic module with a manipulation

I would like to combine a dynamic module with a manipulation, whilst maintaining the functionality of both. I have tried things like Show and ...
194 views

### TrackingFunction not working properly if range contains a mathematical constant

Bug introduced in 10.0 and persisting through 11.1.1.0 or later Answering this question I had to realize that TrackingFunction isn't working properly if at least ...
860 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 ...
286 views

### How to supress loops in a digraph?

I have the following Code working nicely (Part of this code has been developed by users in this forum). ...
1k views

### How to select interactively datasets to plot with Manipulate

I'm using Manipulate to visualize three datasets: Manipulate[ListPlot[WHAT -> what], {what, {dataset1, dataset2, dataset3}}] Now with this solution I can only ...
2k views

### Graphics and panel size

Consider the following snippet: ...
827 views

### Manipulate 2D random walk

Consider the first $10000$ digits of $\sqrt{2}$ and present them as a “random walk” by converting them in base 4 representing 4 directions. Following code produces this random walk ...
2k 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 ...
2k views

### Can I label a Manipulate panel?

I wasn't able to find a way to label a Manipulate panel (not the sliders, etc.). Is it indeed not (directly) possible?
336 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? ...
249 views

### Determining closest lists near any selected point

I'm plotting several lists of data (constant lines of density, temperature quality, etc. on a pressure-enthalpy diagram), none of which are fitted well by ...
2k views

### Add text after label in a Manipulate graphic

I can add the value of a slider to the right of it using the Appearance-->Labelled option, but what if I want to add text after the automatic label. How can I do that? Normally I want to do this to ...
665 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 ...
444 views

### How to eliminate the need to double evaluate a Manipulate so that a Module in its Initialization section works?

Using V 8.04 on windows. I think this issue might be related to the fact that Mathematica reads main body the Manipulate before evaluating or running the Initialization option. Or, might be ...
343 views

### Panning by moving Origin (0,0) with Mouse

Given a 10 by 10 grid like the one below and the axis origin somewhere on the grid, I would like to be able to place the mouse pointer at the axes origin (0,0), then press and hold the mouse button ...
665 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 ...
311 views

### Slider with ticks

I am not happy with the "Labeled" appearance of the slider in Animate or Manipulate. Instead, I wish ticks with multiple of pi under the slider. ...
167 views

### Easily limit list length without getting error if list is empty?

I often need to constrain the length of a list when previewing a list, either in Manipulate or for getting a better sense of the output. Without it, the output may ...
233 views

### Reduce quality of an imported MeshRegion

Importing STL files using Import results in a MeshRegion composed by the triangulation of the original file, and a similar ...
213 views

### Manipulation of initial value of recurrence table

I am studying the behaviour of the recursive function defined by $x_{n+1}=x_n-\frac{1}{x_n}$, $x_0=2$ To get a better understanding of it, I would like to be able to see the "transition" between ...
352 views

### Can individual locators in LocatorPane be temporarily disabled?

This follows up on another question about the sensitivity of Locators in a a LocatorPane. I would like to be able to enable/disable individual locators in a LocatorPane. In the simplified version of ...
714 views

### Manipulate in Manipulate

Question 63982 (Altering values in Manipulate with dynamically generated controls) got a very interesting answer from @belisarius, in which he used a Manipulate ...
333 views

### How to make a table with a jump in range?

I'd like to use Table to generate a list of numbers that includes a gap. For instance, this accomplishes what I want: ...