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

### GIF output not animated

I think the current answer just creates a GIF but doesn't explain why LocalizeVariables -> False would cause an abnormal GIF to be exported. And I don't see any ...
298 views

### How to illustrate the optimal solution with kinked constraint?

I have a simple optimization problem with a linear, continuous constraint or a kinked constraint. The optimal solution is either a tangent point with f*<T or at the kink with f*=T. The standard ...
68 views

### How do I initialise a compound expression in Animate? Or, how do I have an expression evaluate on startup?

I have written a notebook with a few functions I defined. These functions describe a way of generating graphs using 2 inputs. e.g. graph[n_,s_] := Graph[...] I have ...
26 views

### Dynamically updating only the Manipulate local variable

Say I have an array of data arrays, assigned to a temporary variable dat, and I'd like to switch between plots of the arrays using Manipulate. For example: ...
46 views

### Showing desired functions in Manipulate

I have a function like fun[a_, k_] := Exp[a x] + Cos[k t] I want to see how the function behaves when the parameters a and k change. So, I wrote a code as follows: <...
66 views

### Manipulate inscribed parellelepiped in an ellipsoid

Let's say we have an ellipsoid of cartesian equation : $$\frac{x^2}{a}+\frac{y^2}{b}+\frac{z^2}{b}=1$$ I want to visualise all the inscribed rectangular parellelepipeds ...
239 views

### Import files from a directory choose via Manipulate

I thought I write a super-simple program to import all (Excel)files from a directory a user can choose> ...
65 views

### Manipulate and Initialization with functions and some variables

I am trying to do a manipulate with a function that depends on several variables, some of which are also functions. I can't get it to work. I have tried including an "Initialization" but it ...
113 views

### Dynamically Center a Control in Manipulate

I am attempting to dynamically horizontally center a button above the plot window in a manipulate. For example, ...
62 views

### Drag around a bunch of graphics

I'm trying to draw several lines, and be able to drag around these lines all together, using a Locator. So they will all translate together when the Locator is ...
37 views

### Passing a list reference to Manipulate has a different effect to passing the list verbatim

I had a similar question earlier, but it was answered, and including this there would be messy. This works: (it draws just the vertical sides of a rectangle of size 2w*2h) ...
75 views

### Manipulate works if I put an expression in but not if I abstract that away

This gives an error: myline=Line[{{g, 0}, {10, 10}}] Manipulate[ Graphics[{myline}, Axes -> True], {g, 0, 10}] But this works: ...
114 views

### extract COVID data across sub-regions of Asia and the Pacific

The following code extracts COVID data of Germany and gives the time series of confirmed cases, deaths and recoveries: ...
59 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 ...
35 views

...
121 views

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

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

### Plot with Dsolve

I am trying to plot the solution to the Dolve at a position /. x -> 0 ...
155 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, ...
388 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? ...
68 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" : ...
45 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: ...
90 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 ...
127 views

### Manipulation Parameters with Conditions

I have a list, and length of this list can be changed sometimes. I want to define manipulation parameters inside "Manipulate" according to length of the list. For example: ...
74 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 ...
59 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 ...
78 views

### Creating chart labels of two different Manipulated data sets in BarChart

I want to add chart labels to different datasets that are chosen via manipulate. I have a hierarchical data set that I imported from excel and broke down into subgroups using nested associations. ...
49 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. <...
31 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 ...
51 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%...
2k 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 ...
41 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 ...
45 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. ...
83 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....
82 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 ...
136 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 ...
318 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. ...
46 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 ...
131 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 ...
87 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 ...
57 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.
46 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. ...
81 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 ...
104 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,...
30 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 ...
50 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 ...
45 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 ...
98 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 ...