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

5
votes
2answers
302 views

Manipulate showing the trajectory of a particle

I'm trying to plot the trajectory of a particle: ...
5
votes
3answers
545 views

Slow image manipulation

This is some extremely simple code that shows an image and manipulates a circle (that will be used to select a region of the image to analyze). All those Dynamics ...
5
votes
2answers
321 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
2answers
522 views

How to speed up drawing a tangent plane?

I have this code to produce an interactive visualization of a tangent plane to a function: ...
5
votes
2answers
168 views

Manipulate and ExclusionsStyle

How can I change ExclusionsStyle for a plot inside Manipulate? Here's a sample that (though it shouldn't) seems to produce ...
5
votes
1answer
202 views

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

Background: Suppose I have something like this: DynamicModule[{pt1 = {0, 0}, pt2 = {0, 1}, pt3 = {1, 0}}, Graphics[Polygon[{pt1, pt2, pt3}], PlotRange -> 1]] ...
5
votes
2answers
183 views

Can the increment in Manipulate, Table, Range, etc. be subject to an If statement?

In this demonstration I'm working on, I would like to plot a piecewise function with the tangent line to the function at a point that is determined by c in the code ...
5
votes
2answers
336 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
1answer
363 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
631 views

How to define a button inside Manipulate that tells Mathematica to re-evaluate the whole Manipulate code?

I have written a Manipulate code carrying out some very complicated tasks. There is no problem for the first run, but if I click the reset button to reset all ...
5
votes
2answers
219 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
422 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
1answer
541 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: ...
5
votes
2answers
149 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 ...
5
votes
1answer
1k views

How to use button to evaluate a cell

I would like to create a button that when I click it it evaluates a cell containing a manipulate code. Also, I would like another button that when I click the output of manipulate disappears. How can ...
5
votes
2answers
103 views

Keeping a plot fixed as one parameter changes in Manipulate

In the following code I'm plotting the contour $f(x,y)=0$ as well as the family of lines $y=mx$: ...
5
votes
1answer
257 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
208 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
393 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
2answers
431 views

A problem with Deploy and Locator in a Manipulate

I recently asked a question about Locators not behaving properly (see Locators and Table within a Manipulate are not behaving) and thought I had figured out the answer. However, as I played around to ...
5
votes
2answers
422 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 ...
5
votes
1answer
305 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
455 views

Altering layout and sizing of Manipulate controls?

I'm currently working on a display project using Manipulate and was wondering if there is a straightforward way to alter the placement of the control options that I ...
5
votes
1answer
273 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: Manipulate[{x, r}, {{x, r}}, {r, 0, 1}] ...
5
votes
1answer
241 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
95 views

How to feed parameters obtained from direct 3D manipulation back into Manipulate's controls?

Here's a simple example of using Manipulate to interactively change the viewer's point-of-view for a 3D graphics object: ...
5
votes
2answers
92 views

Using gamepad without dynamic

I am a novice using Mathematica. I program regularly using c like languages though. Now i work on a simulation of a vehicle. I have a loop that calculates the next state of the physical model every dt ...
5
votes
1answer
195 views

Drawing disk with coordinates from NDSolve

I have simple Manipulation expression, but continuously getting error Coordinate {x[0.], y[0.]} should be a pair of numbers, or a Scaled or Offset form. I assume that something is wrong with ...
5
votes
1answer
501 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 ...
5
votes
1answer
234 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
365 views

Building conditional lists with Manipulate

I'm trying to select elements of a list that satisfy some criteria using Manipulate[]. Given 2 lists: ...
5
votes
1answer
588 views

Manipulate Plot and control variables using multiple controls

Here's a simple Manipulate example: ...
5
votes
4answers
99 views

Using Manipulate to find best starting parameters to fit data

Often, curve fitting is very sensitive to starting values of parameters. It would be great, if I could to find such starting values of parameters "by hand" using Manipulate. So, I plot in ...
5
votes
1answer
100 views

TrackingFunction not working properly if range containes a mathematical constant

Bug introduced in 10.0 and persisting through 10.4.1 or later Answering this question I had to realize that TrackingFunction isn't working properly if at least ...
5
votes
1answer
465 views

How do I dynamically change Manipulate controls?

What I'd like to be able to do is dynamically change the axis of a 3D plot inside a manipulate. For example if I have a function that has three input variables I'd like a 3D plot using 2 of the ...
5
votes
1answer
397 views

How to convert String to an Expression inside Manipulate which depends on control variable

Normally, in Global context, these 2 are equivalent eqn = "r-x"; r = -2; Plot[ToExpression[eqn], {x, -5, 5}] and ...
5
votes
2answers
460 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. ...
5
votes
1answer
56 views

Using Interval Slider in Manipulate for Plot Functionality

I am trying to incorporate Interval Sliders in Manipulate to allow the user to select a range to view a given plot. Here is an example that I have constructed for ...
5
votes
1answer
248 views

How to control variables of outer and inner Manipulates?

Consider the following ( working ) snippet: ...
5
votes
1answer
235 views

What changes in Dynamic have occurred from Mathematica 7 to Mathematica 8 that might induce incompatibilities?

I have a function that outputs a Manipulate (say FAnimated[params_]:= Manipulate[F[params,t], {Time, Animator[t]}] where F ...
5
votes
1answer
126 views

Manipulator reset bug

Bug introduced in 10.3 or earlier, fixed in 10.4. When the + opener is opened, two things happen: ...
5
votes
1answer
90 views

Manipulate and OpenerView

I have discovered a problem with OpenerView. My opener views always close when I change the value of the manipulator control in my ...
5
votes
0answers
104 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/...
4
votes
2answers
482 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 ...
4
votes
4answers
626 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 ...
4
votes
3answers
177 views

Manipulate controls don't work

I find one solution to make +/- buttons near Slider Control of Manipulate. But I don't understand why it works so bad. ...
4
votes
1answer
928 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 ...
4
votes
4answers
318 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 ...
4
votes
2answers
579 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 ...
4
votes
3answers
249 views

Is there something wrong with this piece of code involving Manipulate?

I am playing around with the Manipulate sentence. I think the following code is right, and actually Mathematica 9.0 doesn't return any error message, but I am ...