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
1
vote
1answer
40 views

How to repeat the same button with SetterBar?

I made a button using SetterBar. However, clicking the same button repeatedly does not apply. How to repeat the same button with SetterBar? ...
3
votes
1answer
50 views

How to use multiple Locators with different TrackingFunction in Manipulate?

I am trying to use TrackingFunction with Locator inside Manipulate, and it works fine with a ...
0
votes
1answer
21 views

symbols in a function to “take on” the values of controls with the same names in Manipulate

(** I want the symbols a1... in f1... to "take on" the values of the controls with the same names in Manipulate[Plot[f1[3,"a"],{x,1,3}],{a1,0,1},{a2,0,1},{a3,0,1}]. Here's what I'...
4
votes
1answer
83 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: ...
1
vote
0answers
44 views

StreamPlot works slow with analitical functions

I'm day to day user in Mathematica, that's I will be happy to any kind of help in code optimisation. So, I try to plot gradient for beatings between two laser modes and plot intensity, phase and phase ...
0
votes
1answer
38 views

Solving from previous results

I require in this program to use only all the value of “p” form “solution 1” in “solution 2”. Instead of copy and paste each value of “p” individually in solution 2, I am trying to write a function to ...
2
votes
1answer
44 views

Manipulate scoping issue?

I'm running Mathematica 12.2 and have encountered the following unexpected behavior with Manipulate: ...
2
votes
0answers
18 views

Manipulate and Rules inside Expressions

I'm not grokking the use of Manipulate when an expression contains Rules. This example works and throws no errors - ...
1
vote
1answer
38 views

Manipulate, IF statements, and displaying plots

When using manipulate and plotting a function within an IF statement, curly brackets appear in the panle with the displayed plot. Here is a simple version of the issue. Can someone tell how to ...
0
votes
0answers
51 views

How to convert Symbol to Number?

Question I have a variable x which is associated with the number 1 : x= 1 In the program, I faced with the data type problem ...
2
votes
2answers
88 views

Generalized Cassini oval and Manipulate

I've created a visualization of Generalized Cassini oval using Manipulate with two options: random and regular. The former generates pseudorandom points in a plane, whereas the latter generates points ...
0
votes
0answers
18 views

CDF Strange difference of line Plot display when switching from stylesheet “Normal” to “Journal Article” with “Manipulate”

A LinePlot graphic with Manipulate works well in the CDF Player if i Use the stylesheet "Normal" but is rendered quite differently when I use the stylesheet "Journal Article". Here ...
3
votes
1answer
86 views

How to Create Lissajous Figures for Driven Damped Pendulum (as an animation/with Manipulate)

I wanted to know how can I generate a Lissajous plot for the forced driven pendulums (but for one pendulum in my case): (https://demonstrations.wolfram.com/ForcedPendulumsWithDamping/). I tried using ...
0
votes
1answer
30 views

Manipulate formula and several value on the Plot

I want to show the numerical results of (universal) gravitation. However, how to give the value in the control bar? ...
1
vote
1answer
43 views

Simple code of Manipulation not working [closed]

Consider the following simple code: Manipulate[Graphics[Point[{First[phi], Last[phi]}]], {phi, {0, 0}, {2 Pi, 2 Pi}}] The expected behavior is to follow the ...
2
votes
2answers
110 views

Using Manipulate with two dimensional inputs

I want to have a matrix (say a 2x3 matrix) as an input of the Manipulate function, where each entry takes a binary value (say, "+" or "-"). The ...
0
votes
0answers
44 views

Interactive 3D Connect dots

I have some 2d slices of a 3d model - These are comprised of points and lines. I want to connect them using something like nearest neighbors, but some of the points in each 2D slice are too far apart ...
1
vote
2answers
60 views

Why can't I manipulate a whole set of code?

I'm trying to make a graph change based on k I used Manipulate on the whole code but it just gives a lot of errors ...
0
votes
1answer
45 views

It would be possible to visualize the value of the integral together with the graph (in the same Manipulate command)

f[x_, y_] := x - 3 y Manipulate[RegionPlot[ 0 <= x <= a && 0 <= y <= b (1 - (x/a)), {x, 0, a + 2}, {y, 0, b + 2}], {a, 1, 20, 1}, {b, 1, 20, 1}] ...
0
votes
1answer
23 views

Create a table of plots in manipulate with redundant variables

I'm trying to create a table of diagrams of which each shows a different variable on the x axis and fetches the remaining parameters from the enclosing scope, a Manipulate object. So I have this code ...
0
votes
1answer
25 views

Using Manipulate with a Bessel function for specific levels N of the sum

I try to plot an interactive plot where one can select the levels of N (noted nf) for a Bessel function: ...
1
vote
1answer
31 views

Creating a rule-based list of lists using Manipulate[…]

Given a list of lists: list = {{x1, x2, x3}, {y1, y2, y3}, {z1, z2, z3}}; Some self-explanatory lists which I like to create using ...
0
votes
1answer
35 views

2D Slider does not move in Manipulate [closed]

Consider the following simple code: Manipulate[Graphics[Point[{pt[[2]], -pt[[1]]}]], {pt, {0, 1}, {0, 1}}] The purpose of this code is to show (y,-x) if the slider ...
1
vote
2answers
102 views

How to create a table tracking successively changing values of controls in Manipulate[…]

Consider the following code that generates the desired output for a single vector of parameters (i.e., values of the controls). My purpose is to generate a set of ...
4
votes
2answers
176 views

Slider changes Pi to a MachinePrecision number

Problem Consider the following code: DynamicModule[{a = {0, Pi}, b = 4}, {Slider[Dynamic@b, {a}], Dynamic@b} ] I want a Slider...
1
vote
0answers
35 views

How to get a smoother color blending on a 3D sphere showing the spherical harmonics?

Here's a manipulate code to show the spherical harmonics mapped on an unit sphere: ...
0
votes
0answers
34 views

How to get rid of the white margins in picture export?

I made a manipulate box to show some spherical harmonics decomposition, and everything is working great (but it's very slow, when I add more harmonics!). Then I need to export the picture, without ...
2
votes
1answer
26 views

Manipulate with two coherent values

I want to have a Manipulate where the user can adjust two sliders with two values which are coherent depending on which value he actually knows. Look at this ...
0
votes
1answer
40 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 ...
1
vote
1answer
71 views

How to Add Vertical Line and Intersection in Manipulate-Plot-Row Diagram

I would like to represent i) the K^s value as a vertical line in the right diagram and ii) identify the intersection of the vertical line with the downward-sloping curve with "E" (as well as ...
4
votes
3answers
83 views

AnimationRepetitions in Manipulate

Is there any way to stop an animation in Manipulate once it gets to the end? I assumed AnimationRepetitions would work like in ListAnimate, but it still loops for me. For Comparison: ...
1
vote
1answer
67 views

Manipulate mapping on lists

For some function f, consider the following expression: ...
4
votes
2answers
158 views

Plot a curve in 2D [closed]

I have a curve $\gamma=(f(x),g(x))$ parameterized by a real parameter $x > 1$ (one can perform a variable change $y = x^{-1} \in (0, 1)$ if $x\rightarrow\infty$ is problematic), with the functions $...
2
votes
1answer
51 views

How to Have Smaller Intervals in TimeSeries

I have a wolfram demonstration project with the following code: ...
2
votes
1answer
40 views

How to Show Velocity and Time Measurements in Manipulate (Wolfram Demonstrations)

I am working with a Wolfram Demonstration that uses the Manipulate function (which I am not yet familiar with). The code is ...
1
vote
0answers
53 views

Plotting from matrix element

I am struggling with a function creating a manipulate of a plot, where the input functions are in form of matrix element. First I define the matrix: ...
12
votes
2answers
211 views

Manipulate for playing along with “Deal or No Deal?”

I started building this Manipulate and am certain I can do so on my own, but thought it was fun enough that others might want to try. (If this is some abuse of the ...
1
vote
1answer
29 views

Mathematica Manipulate[] for plotting a function of several variables

This is a sample snippet from Mathematica documentation for plotting Bessel for various n: ...
2
votes
3answers
80 views

Manipulate lists without curly braces

I'm trying to use Manipulate to specify a list of numbers on the user side, say {50,60,70,80,90,95,99}, but I don't want the curly braces to need to be in the text entry box. i.e. ...
0
votes
0answers
62 views

Plot a function with specific list of values and use manipulate

I have the following function: T[r_, theta_] := Cos[theta*\[Pi]/180]*r^2 which I would like to evaluate using predefined values of r from a function which I define ...
2
votes
1answer
54 views

How do I make my slider invisible if I have an AnimationRunning?

So this is something very similar to my code ...
0
votes
1answer
24 views

Manipulate parametters inside NSolve with complex variable

I think my question should be simple but I couldn't figure out a nice way to do it. I want to find zeros of a complex function (variable $z$) with real parameters ($\nu$, $\alpha$, $\xi$). My goal is ...
1
vote
1answer
62 views

Creating a Tracker for a Wolfram Demonstration

I am using a Wolfram demonstration that shows Newton’s Second Law: https://demonstrations.wolfram.com/TwoMassesOnInclinedPlaneWithPulley/ I am not too familiar with creating animations and I was ...
4
votes
1answer
71 views

Optimizing some code for WolframCloud deployment/publishing

I am working on creating a demonstration and came across an instance where my code works fine on my machine locally but breaks down when deployed to the cloud (so that it can be publicly accessed). I ...
3
votes
1answer
42 views

Performance - Plot with Calloutmarker ->“Arrow” and ImageSize->Full

This is a little esoteric, but I noticed that using CalloutMarker -> "Arrow" on a Plot that uses ...
1
vote
3answers
83 views

Obtaining Pixel Values, from an image, while being able to zoom

I've built a small manipulate widget to extract a pixel value from an image whereever the mouse is clicked: ...
0
votes
1answer
67 views

Density Plotting and Manipulate

I have here a code. I have the density plot of a function with the parameters. May I ask about correcting some errors. (This is a Gaussian Function) The parameters ...
0
votes
0answers
72 views

Stop plotting after a certain point

I'm plotting a function, which is the result of solving a set of coupled differential equations. I am using the Manipulate function to allow the variation of 3 ...
3
votes
1answer
94 views

Manipulating GeoPlots Effectively

I've built a small interface for project because it's been a bit disorienting for me and others to quickly change the range on the plots. Eventually we'll tie different features of the data to colors ...
2
votes
0answers
57 views

Can you calculate the area of region that is plotted with NSolve or FindRoot?

I plotted a pretty complex region in the xy plane (code given below). Basically, one of the inequalities is really complex and needs to be numerically approximated. In my code I do this with FindRoot. ...

1
2 3 4 5
37