Questions tagged [manipulate]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
88 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? ...
B flat's user avatar
  • 5,441
0 votes
1 answer
47 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 ...
Pascal Tchakouté's user avatar
1 vote
1 answer
97 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? ...
Yaroslav Bulatov's user avatar
0 votes
1 answer
45 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:...
Craftyleosteel's user avatar
5 votes
1 answer
69 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 ...
Wjx's user avatar
  • 9,518
0 votes
2 answers
75 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 ...
Soon's user avatar
  • 359
0 votes
1 answer
76 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 ...
Mule's user avatar
  • 43
1 vote
2 answers
52 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. ...
B flat's user avatar
  • 5,441
0 votes
2 answers
71 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?
Ákos Szegedi's user avatar
0 votes
0 answers
64 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 ...
Antonio Gonzalez's user avatar
0 votes
1 answer
51 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]; &)}] ...
eason's user avatar
  • 197
0 votes
1 answer
70 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, ...
Soon's user avatar
  • 359
3 votes
1 answer
68 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 ...
Soon's user avatar
  • 359
2 votes
0 answers
33 views

TrackingFunction not working with LocatorPane in Manipulate

I want to use TrackingFunction with LocatorPane, but when LocatorPane is used, TrackingFunction does not work. ...
pmzhu's user avatar
  • 95
4 votes
1 answer
72 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 ...
Soon's user avatar
  • 359
0 votes
0 answers
68 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: ...
Weierstraß Ramirez's user avatar
7 votes
5 answers
674 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? ...
Vaggelis Dr77's user avatar
1 vote
0 answers
75 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? ...
Athanasios Paraskevopoulos's user avatar
2 votes
1 answer
42 views

Manipulate slider from predefined array

This is a minimal example of what I want to make work: ...
PepeToro's user avatar
  • 133
3 votes
2 answers
100 views

Correctly localize variables in Manipulate

I’m doing a little project for Wolfram Demonstration. When I create snapshots, i.e. paste several times Output cell of Manipulate, all of them updates simultaneously, if any control is changed. I ...
lesobrod's user avatar
  • 1,197
3 votes
3 answers
175 views

How to launch a Manipulate (or a function that uses Manipulate) via a Button

(Mathematica v13.3) This seems to do nothing when you click the resulting Button: Button["Launch", Manipulate[pt, {pt, {-1, -1}, {1, 1}}]] Setting ...
Webel IT Australia - upvoter's user avatar
1 vote
1 answer
74 views

Unwanted reevaluation in Manipulate with RandomPointConfiguration

Here is a simple illustration of a problem I am encountering. I want to use RandomPointConfiguration inside Manipulate, but it ...
Russ Lyons's user avatar
3 votes
1 answer
74 views

how to compute linked Manipulates with a more efficient code

I have several Manipulate codes as parts of a large block diagonal model. Each diagonal model produces outputs which are used in the second diagonal model, outputs ...
Tugrul Temel's user avatar
  • 5,470
1 vote
1 answer
42 views

How to get Manipulate to work with FourierSeries Plot

I have been trying to use Manipulate in the following expression : ...
Confused's user avatar
  • 113
0 votes
1 answer
117 views

How to generate a bubble chart of a directed graph with several properties using Manipulate[.]

This code: ...
Tugrul Temel's user avatar
  • 5,470
0 votes
2 answers
65 views

How to add info text inside a manipulate plot, fixed to the frame?

I would like to show some dynamical information on a plot, inside a Manipulate box. The MWE below show the info moving with the grid lines. I need that info to stay fixed permanently in view, ...
Cham's user avatar
  • 3,959
2 votes
1 answer
77 views

How to change the plot style of several curves, in this manipulate box?

I'm sure this is very easy, but I'm currently unable to make it to work properly. I just need to give different colors and style to the three curves shown in this manipulate box: ...
Cham's user avatar
  • 3,959
1 vote
3 answers
102 views

Combine Dynamic[] and Manipulate[]

I'd like combine Dynamic and Manipulate, cause Manipulate required for Wolfram ...
lesobrod's user avatar
  • 1,197
2 votes
1 answer
80 views

Differentiating unit tangent vector does not work

I am new to Mathematica and I want to visualize the tangent and normal vector field of a particular embedding of the circle. In my code it is [CapitalGamma][s]. When I put the unit tangent vector (uT[...
Ama's user avatar
  • 35
1 vote
1 answer
106 views

Finding the maximum of a non-linear function symbolically

I have the function $$f(x,\alpha) = x^\alpha - \frac{x^2}{2}$$ where $x>0$ is the main variable of interest and $\alpha \in (0,1)$ is the parameter of curvature: ...
Gorkem Aksaray's user avatar
0 votes
0 answers
84 views

How to compute the infinite continued fraction?

I am reading the article "Eigenvalues and eigenfunctions of spin-weighted spheroidal harmonics in four and higher dimensions", which is on https://arxiv.org/abs/gr-qc/0511111. I want to ...
amon xu's user avatar
  • 31
1 vote
1 answer
62 views

Why doesn't Sequence@@ work inside Manipulate[]?

I'm trying to use Manipulate[] and I need to have a non-fixed amount of sliders. I tried writing something like: ...
Nuno Catalão's user avatar
0 votes
1 answer
52 views

Using Manipulate for initial guess to nonlinear fitt, feed the result back to Manipulate (and repeat) for a general model with indexed parameters

I have been trying to put toghether a visual method to help fit experimental data with peaks. I have stumbled upon this answer which is very similar to where I got. But it is not sufficiently general ...
atapaka's user avatar
  • 3,733
1 vote
2 answers
54 views

How to extract manipulated indexed variables from Manipulate

I am struggling with getting values of variables that are manipulated with Manipulate: The code: ...
atapaka's user avatar
  • 3,733
0 votes
1 answer
138 views

How to compute the continued fraction to a generic step by Mathematica?

I am reading the article "Eigenvalues and eigenfunctions of spin-weighted spheroidal harmonics in four and higher dimensions", which is on https://arxiv.org/abs/gr-qc/0511111. I want to ...
amon xu's user avatar
  • 31
0 votes
0 answers
41 views

How can I suppress the multiple redrawing of Manipulate charts every time, on every evaluation after editing code....?

How can I suppress the multiple redrawing of Manipulate charts every time, on every evaluation after editing code.... After coding a few lines, and evaluating I end up having many many Manipulate ...
Lea Rebanks's user avatar
0 votes
0 answers
45 views

how to use subscripted variable such as a_i as the control of Manipulate?

I'd like to define a series of variables called $l_1$,$l_2$, etc., in Mathematica, using the "ctrl+_" shortcut. Moreover, I want to use these variables as the controls of a Manipulate[] ...
larry's user avatar
  • 695
10 votes
2 answers
300 views

Is it possible to have a plot inside a manipulate with parametric controls?

As the title suggests, I am trying to use a Plot inside a Manipulate which has its controls defined programmatically. ...
RoberRM's user avatar
  • 319
4 votes
4 answers
223 views

How to visualize point movements across multiple plots using Manipulate or something similar?

I have the following three plots: ...
internet's user avatar
  • 495
3 votes
1 answer
79 views

Manipulating expression ParametricPlot

How can I make Mathematica plot the curve being traced by the focii of the ellipse? I know the traced curve would be drawn in an instant, when I switch the variable from u to t, but I want the curve ...
LLCJ's user avatar
  • 382
3 votes
1 answer
123 views

Optimized GIF 20s for 85kb for Mathematica Code Demonstration

I’m new here this is my first post on Stack Exchange. In the thread below, I see that a GIF file is highly optimized (20s for 85kb) with no noticeable compromise in resolution. It appears to be the ...
StrixISL's user avatar
2 votes
1 answer
30 views

Manipulate error with ViewPoint

I have the following code that shows n spheres, but also allows you to reset the view if the graphic is rotated: ...
rhomboidRhipper's user avatar
1 vote
1 answer
127 views

How to modify this code so that the first derivative image of the function displays different colors above and below the x-axis?

...
csn899's user avatar
  • 2,879
2 votes
0 answers
40 views

Slider2D for 2 parameters

I don't understand how to make a and b be controlled via Slider2D at the same time (abscissa - a, ordinate - b). The hyperbola should change depending on these parameters. I am attaching the code: <...
Witch Hel's user avatar
2 votes
1 answer
115 views

How to draw a line on an existing region using RegionPlot with manipulate?

line1 = Table[{x, z + 1}, {x, 0, 2}]; Manipulate[ RegionPlot[x^2 + y^2 + z < 1, {x, 0, 2}, {y, 0, 2}, Epilog -> {Red, Line[line1]}], {{z, 0.5}, 0, 1}]when I ...
hu_rrr's user avatar
  • 81
0 votes
0 answers
21 views

How to Make Automator not Stop or Glitch when Moving Another Slider

The following code creates an animated graphic that auto-rotates, and I can change the view by mouse-dragging the graphic without causing it to stop or glitch. It works great. However, when I use the ...
B flat's user avatar
  • 5,441
2 votes
2 answers
90 views

Select and deselect many options at once in CheckboxBar

Is there any way to select and deselect many parameters in Manipulate's CheckboxBar? For instance, consider following code: ...
Lechuu's user avatar
  • 484
1 vote
1 answer
34 views

Unable to apply Reduce to a variable number of inequalities (obtained by InputFields)

I'm new to Mathematica and I'm stuck on this piece of code. The code is supposed to let the user choose how many inequalities (in a number between 1 and 5) they want to be evaluated. ...
Gbekss's user avatar
  • 11
6 votes
6 answers
829 views

How to wrap a cylinder?

i'm trying to wrap a cylinder in a torus, the best i've done is the following code: ...
Oscar Hernández's user avatar
0 votes
0 answers
46 views

Problem with Manipulate

Ok, so this one seems quite strange to me ... I am plotting two functions into a Manipulate Environment, both have one real variable and one real parameter (which is manipulated with the slider) ... ...
Philipp Grewenbach's user avatar

1
2 3 4 5
41