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

### Manipulate VTK vertex fields

I have a VTK file that contains several vertex fields, and I'd like to manipulate the view. The objective is to show/hide all vertices whose field match a certain function. For instance, if I have a ...
58 views

### How to show a line in a Manipulate plot?

I'm trying to display a Graphics line alongside my Manipulate plot but I can't seem to do it because the Graphics and the Plot do not show up together. Basically, I want to show this line ...
276 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 ...
97 views

### Manipulate works in Mathematica but not in Wolfram Player

This is most likely a very naive question, but I'm puzzled as to why the following code runs smoothly in Mathematica 12.1.1.0 but does not generate a working plot in Wolfram Player 12.1.1.0. ...
92 views

### What are common pitfalls for newbies trying to use Plot? [closed]

I am new to Mathematica, and I have had extreme difficulty with Plot. Often, my plots simply don't appear. Here is my current code: I tried to avoid the common ...
32 views

### Intersection point for existing solution - avoiding error messages, message in diagram if no solution exists

I am trying to highlight the intersection if one exists. For specific parameter values there is no solution and the manipulate output creates error message and red background. How can I avoid the ...
88 views

...
229 views

### System of equations does not solve with Solve

I am trying to find the solution in order to highlight the intersection point. ...
40 views

### Intersection point across two diagrams with manipulate: Problems with Coordinates

I am trying to highlight the intersection point (point, dashed lines) in the bottom diagram and the the corresponding point in the top diagram. Unfortunately, I am creating lots of error messages in ...
88 views

### Lists{vals,funs} and NDEigensystem are not the same shape?

Hi I'm trying to create a Manipulate[Plot[]] so that I can vary lambda in the below equation from 0 to 2 and see how it affects my plot. I'm getting stuck a couple steps before that though where I use ...
55 views

### Manipulate and Plot of Tangent Point in Optimization Problem with Kinked Constraint: Solve and PieceWise Problems

I'm trying to illustrate an optimization problem with a piecewise constraint creating a kink at the maximum value of T if n>0. ...
70 views

### Manipulate not showing the four curves I want to manipulate

I've tried to display four functions in a single plot without success and I don't know how I should change my code in order to see the function. Indeed when I run the command I just see the axises but ...
61 views

### ListPlot is not plotting functions from DSolve, brought by ReplaceAll(/.) command

I have the following simple differential equation ODE = DSolve[{x'[t] == 1, x == 1}, x[t], t] and I'd like to visualize how the solution ...
37 views

### Manipulate giving errors when I plot the product of a step function and a continuous function

Riemann's prime counting function J (link) takes half-values at every jump-discontinuity. So, I define it thus: ...
61 views

### Manipulate and Plot of Tangent Point in Optimization Problem: Solve Problems

I want to illustrate how changes in the values of exogenous variables and parameters (T,w,[Alpha]) are changing the optimal values of two endogenous variables (f,c)=(f*,c*). The solution is with a ...
126 views

### Question about finding the area

Here is a link to my previous question Question about plotting a curve and tangent lines I want to know how can the area be found between the curve and tangent line for between Point Fun1 and Fun2....
67 views

### How to combine Manipulate and OutputResponse to manipulate a transfer function

The webpage on Manipulate provides an example on section Examples > Applications of how to manipulate two parameters (the initial conditions) of an Initial Value Problem (ODE with initial ...
715 views

### Enable syntax highlighting and code completion in CDF player?

Try coding on iPad has fun, I downloaded the free app Wolfram Player in App Store and found it can interact with Wolfram notebooks ...
57 views

### FindMinimum with Manipulate

I have an expression for the energy of a given physical system and I need to plot its minimum with respect to one of the parameters while the others are allowed to vary. The expression is the ...
63 views

### Using Dynamic with PlotRange inside Manipulate

I am using Manipulate to plot a function that takes a fair amount of time to be plotted. Once it is done I would like to change the y-range where it is plotted. To avoid that the function is evaluated ...
44 views

### Manipulate DSolveValue

I have the following EDO: f'[t] == (1/V*a/T) - ((Lambda + Q/V)*f[t]) Taking into account that the variables V,a,T,Lambda and V are constant, I would like to make a ...
42 views

### Manipulating the plots obtained from NDSolve

I am trying to manipulate my parameters eNA, eNM, eMA, eMN, eAM, eAN in the following plot obtained from using NDSolve on my set of differential equations. But I can't find a way to do it. The ...
62 views

### Can Manipulate controls be generated programmatically based on a (non-manipulated) variable?

I would like to do something like this: ...
218 views

### How Do I fill the Area of a Polar Plot

Grandson and I are working on the Calculus of Polar Coordinates, specifically, finding the area enclosed by a polar plot. We can find the area; however, we cannot seem to find anything in the ...
60 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. ...
30 views

### Problem with Initialization cell and Manipulate

The following minimum failing example illustrates a problem that I am having building an application to simulate projectile motion. In the notebook's initialization cell, I have the definition of a ...
57 views

### Marking the minimum point of a quadratic [duplicate]

Clear[a] Manipulate[ Plot[ a*x^2 + 2*x + a, {x, -40, 40}, PlotRange -> {-15, 15}], {a, -10, 10}] I want to mark the minimum value in this range with a blue ...
51 views

### Manipulate a plot of coupled differential equations

Good afternoon, I am attempting to construct a graph showing the trajectory of two variables over time, based on a coupled system of differential equations and some arbitrary initial conditions which ...
51 views

### Using and Naming different sets of data in a manipulated chart/plot

I am trying to visualize advertisement data from amazon which is comprised of a dozen or so campaigns, each of which has three subgroups and each subgroup has its own performance data (metrics). ...
100 views

### Simple Manipulate produces front-end freeze

I am using Mathematia 12.1 on Windows. I experience a front-end freeze when I evaluate a certain Manipulate expression. I have reduced the code down to a rather ...
120 views

### adding a point in a manipulate command

I am having trouble adding a point to mark the Min values of each parabola when using the Manipulate command? ...
327 views

### How to plot a two-variable function in 2D?

Say I have a function $y = ax^2$. I want a plot of '$y$' vs '$x$'. Here '$a$' is a parameter. I can set different values of '$a$'and get some disjoint set of plots by the following command: ...
71 views

### a “Calculate” button for Manipulate with Locator points

Looking for a methodology where the user can move the points of a Locator and then click a button to ask for calculations to proceed. The motivation for this is that the calculations of the full ...
41 views

### Error when using Manipulate[Plot]

I'm trying to create a plot that varies from m = 0.1 to m = 1 but when I use Manipulate, I can't get anything to show up and I get approximately 50 quintillion errors. I think it has something to do ...
47 views

### Compact notations for multiple variables

Why does this work Manipulate[ListPlot[{a,a,a}], {a, 0, 1}, {a, 0, 1}, {a, 0, 1}] But this doesn't? ...
115 views

### Super Slow Manipulate with Heat Equation - - Assumption, and Interpolate

Aim: solve coupled heat equation with cubic source, use DensityPlot and observe how system will react to changes in parameter(like kand ...
65 views

### Getting error when I substitute PDE for ODE

The following code works perfectly: ...
51 views

### Manipulate - Use values from list without displaying the values [closed]

I have a set of different sensors which all have different names and corresponding sizes. I often need to choose a certain sensor and I want to choose it by its name. I then need mathematica to do ...
47 views

### Having trouble with a Manipulate showing a ContorPlot and the results of NSolve

I am using a manipulate on a ContourPlot and a NSolve, the code is the following ...
54 views

### How to make value of HorizontalGauge be continuously updated in Manipulate?

I wrote the following code: Manipulate[HorizontalGauge[Dynamic[x], {0, range}], {range, 5, 10}] I want to plot a HorizontalGauge...
87 views

### Colors in Manipulate[] plot change during execution

UPDATE WITH WORKING EXAMPLE Following what @Kuba said, I've attempted to find a MWE that shows the problem without too much of the other stuff, and here's what I've done. Here's a couple of new GIFs ...
154 views

### Change plot style as function of parameter in ParametricPlot

The Manipulate below produces a path traversing the upper unit semicircle, going from {1,0} at time 0 to ...
54 views

### Why can't HorizontalGauge be directly added to the control part of Manipulate[]?

I try to use HorizontalGauge in Manipulate as follows: ...
70 views

### Why is the stationary solution showing different behaviour than that of plotting maximum and minimum separately?

I am trying to plot the stationary solution of the function given below w.r.t. a parameter c as follows ...
54 views

### Reset sliders to default (zero) when a PopupMenu item is selected

I am setting up a UI with sliders that are enabled or disabled according to the item in a PopupMenu. I have been trying to figure out how to reset the sliders to ...
29 views

### Not able to globalize variables from a manipulate expression

I am attempting to globalize the variables inside of a Manipulate expression for which my variables are also using interdependent controls. I have attempted to use <...
73 views

### Manipulate for average value of a function

j[t_]=(9 t)/(81 + t^2)^(3/2) s[b_,t_] = 1/b * NIntegrate[j[t],{t,0,b}] Plot[s[b,t], {b, -15, 15}, PlotRange -> {-0.04, 0.04}] ...
92 views

### Dropping curly brackets from a list [closed]

I would like to make many plots using the same plot parameters. I am trying to define a plot parameter list such as ...