# Questions tagged [manipulate]

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

2,069 questions
Filter by
Sorted by
Tagged with
1 vote
30 views

### Saving data from a Manipulate's current state using a FormObject control

I would like to save a large set of data that has been computed within a Manipulate. Here is a minimal example: ...
• 4,625
65 views

### HoldForm Error for Illustrating Coordinates

I am having trouble illustrating tupoint[c, b, a, d, t] in the right diagram. When using the tax unit slider, the red coordinate should be moving along the graph - illustrating the current tax vs. the ...
• 383
35 views

### Manipulate a RegionPlot domain defined by a delayed expression [duplicate]

Consider the following input: temp := c Manipulate[RegionPlot[True, {a, 0, 1}, {b, 0, temp}], {c, 0, 1}] I expect to get a region plot with a manipulate slider ...
• 863
41 views

### Manipulate module to plot function with long list of parameters

I have a function with a long list of parameters, for example: ...
120 views

### Visualization of Minimization Problem

I am trying to visualize the objective function (f1), the constraint (isoq), and the optimal solution. The optimal solution is at the tangency of both graphs. I can plot the constraint, but the ...
• 383
59 views

### How to efficiently find the series of quasi-normal frequencies using FindRoot?

I want to use FindRoot reproducing the following result in the table 1 of the article "Scalar gravitational perturbations and quasinormal modes in the five-dimensional Schwarzschild black ...
• 41
1 vote
51 views

### Controlling Manipulate using a mouse-over wheel scroll

Can I get Manipulateto allow me, once the plot appears, to hover my mouse over the plot and scroll my mouse wheel to vary the parameter $a$? Currently I need to ...
• 2,195
27 views

Although not new to Mathematica (started on v6.0), I have never tried to create a PopupMenu that has submenus from within a Manipulate command. The relatively new ActionMenu command with its submenu ...
57 views

### Programmatically establishing controllers for Manipulate inside a module

I am trying to create a module that allows users to cycle lists to look for a pattern and need a way to programmatically establish the number of controllers depending on the number of lists being used....
140 views

### Speed up Manipulate when including several static 3d plots in Show

I made a dynamic vector visualization ...
46 views

### Syntax regarding Manipulate plot with multiple functions

I am facing the following issue; I have the solution of a ParametricNDSolveValue and would like to plot several solutions with varying parameter in the same Manipulate to see qualitative differences. ...
• 115
42 views

### Manipulate not showing despite Plot working fine

Heyhey I am trying to solve a differential equation for the time evolution of a probability distribution. It solves just fine using NDSolveValue and I am able to plot the solution for specific times, ...
• 115
1 vote
40 views

### Avoiding ugly errors in Manipulate (and alike functions) on start up of Notebook [duplicate]

When there are Cells containing Manipulate this often leads to Errors in cells right at startup. Say I write willReceiveValue={1,2} in one cell and in another <...
• 4,591
1 vote
44 views

### How to get a single line title in a Manipulate box? [closed]

I'm having a text output issue with the following code: ...
• 4,103
1 vote
75 views

### Solving a system of differential equations, which depend on parameters, and visualizing the solution [closed]

Shortly put, I would like to solve a system consisting of two differential equations, which depend on 3 parameters $\lambda,\sigma 0, \sigma a$ (these are some constant numbers), then I would like to ...
• 111
159 views

### Regarding the interactive operation of a four-bar linkage mechanism

I have a four-bar linkage mechanism, where when the left locator is moved, the right locator moves accordingly, and when the right locator is moved, the left locator moves accordingly. I have ...
• 874
18 views

### Predefine plot for manipulate [duplicate]

I have many messy plots that I want to plot in a grid. I'd like to keep things neat and tidy by redefining the plots elsewhere in the script. I also want to plot them inside a manipulate function and ...
• 23
180 views

### How to improve this atomic orbitals manipulate box output?

I made this Manipulate box to show the atomic orbitals in the $(x, z)$ plane: ...
• 4,103
103 views

### Manipulate Plot with Find Root Parameter

I would like to plot the function G(r; x') as a function of r, but with parameter x'. x' is the solution to F(x';p) = 0 where p is a parameter I can control. Unfortunately F is messy and I must use ...
• 23
1 vote
73 views

### How to include Manipulate in fitting?

I'm trying to fit three differential equations to two data sets, using the code developed by @Cesareo, as follows: ...
69 views

### Manipulate parameters with parameter ranges dependent on other parameters

I've reduced some of my code to the code here Manipulate[ (*output here here*) {j, 1, 40, 1}, {k, 1, Dynamic[j], 1}, ] The problem I'd like to fix is that if I set ...
• 115
409 views

### Rotation Slider Control

Mathematica seems to support no "rotation slider" Control which might be used, for instance, in setting an angular direction ($0 \leq \theta \leq 2 \pi$) on a plane. I couldn't find one in ...
• 41.8k
1 vote
155 views

### How to rotate a 2-body system about various independent axes with body-fixed pivot points/rotation origins?

I am trying to simulate a jointed two-body system on Mathematica, consisting of these components: "Beam" and "Plate". I am constraining the system such that the beam is always ...
121 views

### How to visualise a rotated cuboid as an output of its rotation matrix and original dimensions, using Graphics3D?

I'm new to Mathematica, and I'm trying to figure out how to visualise a rotated cuboid as an output of its rotation matrix and original dimensions using Graphics3D. ...
1 vote
36 views

### Interactive input of integer-coordinate 2D points

I'd like code to allow interactive input of a chain of 2D points, which are saved in some global variable. And in addition, I would like to constrain the coordinates to be integers. The code below is ...
• 4,751
133 views

### Limiting sliders dynamically

My goal is to implement the three things below. (i) Number of white balls(w ) and red balls(r) are constrained to be 2 ~ 29. (ii)Total number(n) of balls is w+r and it shoud not exceed 30. (iii)...
• 648
1 vote
37 views

### Change specific elements of a list [closed]

I have currently looking to change specific elements of a list. I saw that you can apply a fonction to an element if you know it's position as shown in this question : Apply function to specific ...
135 views

### Speeding a Manipulate illustrating convolution

I'd like to illustrate the mathematical process of convolution ($f(x) \star g(x)$) with an interactive Manipulate, but the evaluation is far too slow for a class ...
• 41.8k
1 vote
44 views

### Simplify argument of Logs

I have the following expression ...
• 1,897
146 views

### Extending an Animated Vector Flow from Two to Three Dimensions

I found some code for animating a two-dimensional vector flow on stackexchange. Unfortunately, I can't find the original post so I can't credit the author. I have modified the code for my purposes ...
• 5,585
98 views

### Manipulate breaks when using the RegionFunction option?

For some reason, the code below breaks when using the regionfunction option with Manipulate. Am I missing something or is this a bug? ...
• 5,585
68 views

### Pointwise convergence of Fourier series: partial sum animation not rendering plot

I'm new to Mathematica (13.3) and I'm attempting to demonstrate the pointwise convergence of the Fourier series for the square wave function f in particular, by showing via Animate/Manipulate that as ...
1 vote
120 views

### Make Manipulate work despite Clear["Global*"]

What is the correct way to stop all my Manipulate cells from breaking every time I issue ClearAll["Global*"] command? ...
• 7,875
50 views

### Using Manipulate On Parametric Plots

I was trying to animate a state space plot to change with respect to some sliders and here is what I have tried so far. Right now I am just getting a bunch of errors and I'm not sure how to fix fix it:...
108 views

### How to most responsively manipulate time intervals in ParametricPlot?

I often met with the case where I want to show the past trajectory of a object. A way of demonstrating this is to plot the trajectory using ParametricPlot, and then ...
• 9,630
89 views

### Appending Random Number to Existing List

My goal is to append random number to list like below.The problem is whenever I try appending a random number, the previously created numbers are changed which I don't know why. How to add a random ...
• 648
100 views

### How to make a 2D plot using Manipulate with slider bar?

In the data below, I solved a heat transfer equation which gave me the Temperature for a given position and time. I want to make a 2D plot as a function of Temperature and position with the ...
• 43
1 vote
57 views

### How to stop Manipulate with PolarPlot from resizing PolarAxes?

I'm having some difficulty figuring out why the following code resizes the polar axes once move the slider past a certain number. ...
• 5,585
86 views

### Any idea why my Manipulate[ParametricPlot] isn't showing anything [duplicate]

[ As you can see on the attached screenshots I tried to make it work multiple times, but it shows nothing. Any idea?
66 views

### Manipulate doesn't work correctly

Suddenly, Manipulate has stopped working in a Notebook that until recently worked perfectly. I want to animate a plot of rotations of a cube. I define the rotation matrices ...
54 views

### TrackingFunction does not work when more than one Locator in Manipulator

TrackingFunction example Manipulate[ Graphics[Circle[], PlotRange -> 2], {{pt, {0, 0}}, Locator, TrackingFunction -> (pt = #/Max[Norm[#], 1]; &)}] ...
• 197
77 views

### Plotting Using Nesting Manipulate

My goal is to plot the number of locatable points and their average point as fig2. The number of points is set by the slider and they are locatable. My code with nesting Manipulate is as shown below, ...
• 648
78 views

### Locating points by selecting points

My goal is to locate points without using slide bars then average point is dynamically plotted. Could I select and locate a point directly without using the slider bar?(I could locate points using ...
• 648
36 views

### TrackingFunction not working with LocatorPane in Manipulate

I want to use TrackingFunction with LocatorPane, but when LocatorPane is used, TrackingFunction does not work. ...
• 95
76 views

### Manipulate with pre-assigned number of parameter

My goal is to draw dots whose positions can be adjusted. I could draw a fixed number of dots, say 2 and 5, like the code below. If the user sets the number of dots, how do I create dots and sliders ...
• 648
72 views

### Manipulate through Graphics3D

Inspired in this answer. I am attempting to run a Manipulate through a 3d Graphic. This is the code that I am trying: ...
710 views

### How can I make Manipulate faster?

I'm happy with the result of the graph I made, but it runs very slowly. How can I make it lighter and faster? ...
1 vote
76 views

### Problem with the Manipulate command

I am trying to upload a notebook with the following code to my blog, but every time I upload it, the "manipulate" code does not give anything. Do I have to change anything? ...
43 views

### Manipulate slider from predefined array

This is a minimal example of what I want to make work: ...
• 133