# 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,868 questions
Filter by
Sorted by
Tagged with
53 views

### Plot with Dsolve

I am trying to plot the solution to the Dolve at a position /. x -> 0 ...
113 views

Manipulate[Column[{ Plot[Sin[a x], {x, 0, Pi}], Plot[Cos[a y], {y, 0, 2*Pi}], Plot[Tan[a z], {z, 0, 3*Pi}]}], {a, 1, 10}] I want to put a popup menu here as Sin, ...
63 views

### Why the animation of a function gives different results from the integral?

My function is: A1[B_, x_, t_] := (AiryAi[B*(x - (B^3*t^2)/4)])^2 (B is a constant) and if I use "Manipulate" : ...
41 views

### Plotting a user-defined function with NMaximize

I am not sure what is going on with this plotting. I see that the following code works: ...
86 views

### how to easily select an indicator from a long list of PopupMenu within Manipulate[]

The following code (from this forum) works as expected, allowing a quick selection of an indicator from a very long list of ...
70 views

### How to create a Manipulate Object with an extra field that depends on what is selected in earlier fields?

I am interested in exploring the new MaterialShading function. I have created a Manipulate object with two fields for making a Graphics3d object of ExampleData's built-in cases. The first parameter ...
376 views

### How constrain 2d slider in Manipulate to a specified region?

In a Manipulate, how can a 2D slider be constrained to a specified region — for example, to the unit disk $|z| \leq 1$in the following example? ...
55 views

### Represent the motion of a particle

I am trying to represent the motion of a particle along a given trajectory. So I defined the following functions ...
47 views

### How to use Manipulate on a function

I would like to use Manipulate on the below function so I can vary the vertex and edge counts on the generated graph. Any help on how to do so would be greatly appreciated, and thank you in advance. <...
27 views

### HoldForm print out defined variables

I'm not sure if this is possible or not but I'm looking to use, the print function with somesort of function like HoldForm. The only issue here is it doesn't print out the defined variables (see photo ...
48 views

### Show/hide function evaluation in manipulate

I am using Manipulate to plot a function, but I would also like the option of showing information about that function in the Manipulate control area, as text. I keep getting an error (see code / image ...
28 views

### How to make a manipulatable map that can change color?

I want to color the world map differently according to how much the number of each country. For example, USA using renewable energy for 20% should be colored lighter than Canada using renewable for 50%...
40 views

### How to add animate with respect to $0<t<\pi$ in the given code?

I have a two-variable function $f:=f(x,t)$. I want to plot the given conditional plot as a function of $x$ by animating the variable $t$. The given code works for particular values of $t$; how can I ...
43 views

### Manipulate Options

As an exercise to explore the syntax of the various Manipulate Options I've written the following code that takes advantage of a number of these options. ...
54 views

### How to draw multiple variables in a 2-Y-axes in Manipulate[]

I simply put @kglr's code into Manipulate. This does not work. Apparently, my inputs are not in the right format but where? And which ...
81 views

### Getting square matrix of dimension matrixrank

I have matrix with dimensions {24,33} and matrix rank 23, it is symbolic. Is there a way to get matrix with dimension {23,23} by using built-in Mathematica functions? I would know how to get it simple....
75 views

### Is it possible to create Android App Bundle (aab) for Google play with Wolfram language/Mathematica?

Mathematica is excellent tool but I don't know if is it possible to create Android App Bundle (aab) for Google play with Wolfram language/Mathematica or not? Please advise or share your opinion/idea ...
32 views

### how to record the viewpoint and viewvertical when using Manipulate Bookmarks?

I learnt from a relevant question that we can click on the plus sign of the Manipulate output, and choose "Add to Bookmarks" to store different set of values of controls, so that one can ...
131 views

### Making a list of variables

Consider the following code, which give a Manipulate object that returns the "total" of a certain variable var 1 ...
42 views

### any way to store the values of the controls of a Manipulate so that one can reuse them in the future excutions

I’m using Manipulate[] to adjust several parameters, which will eventually generate some figures. After I get the desired view, I’d like to store the set of control parameters so that I can reuse them ...
313 views

### How to make a dynamic plot of a holed circle using "Manipulate"

I would like to make a dynamic circle with the inner radius ($R_a(t)$) moving to $R_b$ like the image below. I had difficulty using Manipulate and leaving the intersections colored as in the image. ...
128 views

### How to display warning message inside manipulate?

Using the code shown, Reynolds number is calculated for given parameters. Is it possible to display a warning message to the user if a parameter is outside applicable range? e.g., if the fluid ...
55 views

### How i can move the slider Below X axis and beside Y axis of plot? [closed]

I want to place this slider below the x-axis and Vertically beside the y-axis.
83 views

### IntervalSlider inside Manipulate

I try to implement a Manipulate control to draw a partial circle. For now, I have a ParametricPlot with fixed lower and upper ...
103 views

### How to split many controls in Manipulate into multiple columns (saw some potential bugs)

I need to use Manipulate[] with many controls, because I have around 40 parameters which I want to be able to alter. Since the number is too large, I want to split these controls into multiple columns,...
80 views

### Need help plotting a wavefunction generated from a sum of eigenstates [closed]

I am a beginner in Mathematica. I am trying to plot the time evolution of a non-eigenstate wavefunction as a sum of eigenstates. So I start with an eigenstate of an infinite square well, then expand ...
48 views

### Abort dynamics error

I am encountering a problem when I use the function Manipulate. Even when I run the simple code f[a_,x_]:=a*x Manipulate[Plot[f[a,x],{x,-1,1}],{a,1,2}] I obtain I ...
42 views

### How to use Manipulate for the variable $z$ in the given ContourPlot of three functions?

I have these three functions (two of them 2-variables, and one is 3-variables) $$\{\quad f:=f(x,y)\quad,\quad g:=g(x,y)\quad,\quad h:=h(x,y,z) \quad\}$$ I would like to have ...
42 views

### ParametricNDsolve and Manipulate

Currently, I'm trying to solve a differential equation using the function ParametricNDsolve and then use Manipulate function in order to see what happens when the diameter changes so I can find the ...
96 views

### Disabling an individual button in a SetterBar

I'm trying to create a set of SetterBar within my DynamicModule, but I want to have it so that an individual button gets ...
211 views

### Manipulate[] with interdependent Locators

how would I create a Manipulate to draw a InfiniteLine between two Locator? The first Loactor should control the x/y of the first point together with the y of the second one. The second Locator should ...
84 views

### DynamicModule & Manipulate Plot

I tried to write a convenience wrapper around Manipulate for easier plotting. However I failed already at the very first step. Consider the following example: ...
111 views

### How to use Manipulate with ListLinePlot

I'd like to run Manipulate with 0<r<=4 that preserves the ListLinePlot of the recurrence table given with the colors shown. I'm looking to use the autorun feature in Manipulate to show how the ...
42 views

### Plot SinglePredictionBands associated with a FittedModel (e.g. LinearModelFit) that is supplied as a variable

I am puzzled about how to plot the SinglePredictionBands associated with a FittedModel (e.g. ...
72 views

### Why does Manipulate update without change of TrackedSymbols?

Below you find a very minimal version of a code, where the Manipulate keeps updating (run is constantly printed) despite the Tracked symbol not being changed. Funny enough, this only happens if d1 and ...
144 views

### Rotation/Viewing options for 3D plots

Preamble In this post from several years ago: , it has been suggested that a "Globe" method is available for RotationControl. ...
28 views

### SetPrecision with Manipulate using variable number of controls

I want to convert inputs from controls in Manipulate into exact numbers and have two kinds of inputs: parameters: there are a fixed number of these rates: the number of rates is controlled by the ...
41 views

### How to create an Interactive Solver using either Dynamic, Dynamic Module, Manipulate, Form Page, and Form Function?

I am working on creating interactive solvers for laws in physics where first select a variable to solve for such as displacement/length/position, density, mass, torque and electricity and then enter ...
40 views

### Pie chart labels do not render properly

I am working on a project and this pie chart needs to have same-sized labels that emanate "radially" outward. There will be concentric charts outside this core with more information about ...
65 views

### Picking/selecting elements from a list

I'm trying to pick/select elements from a list based on another list's value. I haven't been able to implement the solution given to similar questions, such as this and this. Here is a MWE: ...
111 views

### Exporting specific frame of ListAnimate

Imagine I have a certain list of Graphics-type objects that I then incorporate into ListAnimate ...
228 views

### How to stop this computation?

I want to implement start-stop dynamics within a Manipulate environment so that, when I click a "Start" button, the simulation starts, and when I click ...
68 views

### Manipulate the list. (Argument does not have the correct form for a variable specification.)

Why doesn't this work: ...
52 views

### Multiple animations in Mathematica rows and columns

I am trying to generalize the problem on this thread: Multiple animation in Mathematica by including additional plots on the right-hand side of the main plot (the gaussian one). For ease, I will be ...
199 views

### How does Manipulate work "under the hood", i.e. gets converted into DynamicModule and Dynamic?

The Mathematica documentation says in Introduction to Dynamic under "Dynamic and Other Functions": Manipulate in fact produces a combination of ...
164 views

### How to merge multiple .nb files into one notebook in mathematica

I have 10 different notebook files which I want to combine into a single .nb file. I know I can copy-paste all the cells of those 10 files to a new notebook window and then save it as nb. I can do so ...
78 views

### How to have multiple ways of specifying the Control variable in Manipulate?

Consider the following as an example: ...
65 views

### Dynamic updating problem

Consider the code ...