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

### Controlling what is plotted in a multi-curve plot

My question is on trying to cut off certain plots within a Plot with multiple expressions being plotted. I want to be able to stop the two dashed-line plots at ...
135 views

### Interactive ColorFunction using ListContourPlot

I try to use Manipulate to specify my interactive own colors and scaling for the ColorFunction in ...
454 views

### How to create some macros

I have two question in one. In the following code, I want to manipulate a plot in a centered cell. It is fastiduous to try always to remember the way to act. Could I define some macro as in a standard ...
189 views

### Parametric Plot - Opacity Changing Along Line

How would one have the trajectory in a parametric plot go from a higher to lower opacity? Suppose the following code for example: ...
87 views

### How to make a diagram and get the exact intersection points at the same time?

Here is the code. A part of the diagram is not a function. ...
165 views

### Rotation by Euler Angles using SphericalPlot3D

I am new to Mathematica and I am trying to create a small animation using SphericalPlot3D. Essentially I have a 3D figure defined in ...
98 views

### How to shorten the length of the tangent line

I have all the equations down to manipulate the tangent line on the graph... but the tangent line is too long, what would be the best way to shorten it? ...
73 views

### Show shows two objects separated by a comma instead one on top of another

As in the title. I want them to be on the same graph. Additionaly i want to the graph to always be focused on the rectangle. ...
161 views

### Using Manipulate[] to manipulate Plot[] min and max values

I have code: Plot[y = -3*x + 2, {x, -10, 10}, AspectRatio -> Automatic, PlotRange -> {{-20, 20}, {-20, 20}}] output: Now I want to use ...
621 views

### Removing an extra curly braces when using Grid with an If statment

I use Grid to align controls in Manipulate. Here is a simple example ...
172 views

### Draw two curves and a surface

I'm trying to draw two curves and a surface, where one of the curves is to appear on the surface. Unfortunately the curves are drawn with very few points and appear extremely unclear. Is there a way ...
300 views

### Fill curve betwen specified abscissa points [duplicate]

I am plotting the Maxwell-Boltzman distribution of molecular speeds. I want to be able to select a region to integrate using a manipulate function. Then I want to have that same region filled in on ...
513 views

### How do you create draggable points inside a graphic image?

I want to create a simple line with two points that can be dragged (one at a time), as in image below: How can I do that without using sliders, but rather dragging the points themselves. I suspect ...
147 views

### Plotting a circle that can move up and down the y-axis

How can I create a circle for the equation $\qquad x^2+(y-a)^2=9$ where $a$ is a parameter. I want to plot this curve with a slider $(a)$ in Cartesian coordinates (better with axes). If possible, ...
312 views

### How to combine 2d circle graph (with point which is rounded) into helix 3d graph (motion of particle along circle in the world line)

Manipulate[Graphics[{Circle[], {Red, PointSize@.05, Point@{Cos[x], Sin[x]}}}], {x, 0, 2 Pi}] and ...
100 views

### Is there a way to Plot intersection point in Manipulate?

I've tried to plot this . But It seemed useless in MeshFunctions ...
1k views

### How do I control the spacing and font size for my plot legend?

I have a Manipulate-based figure in which I'd like to place a compact legend in the upper left corner (within the figure's frame). But by default, the items in the ...
4k views

### ListLogLinearPlot logarithmic axis tickmarks

When using ListLogLinearPlot the abscissa labels every other decade. Is there a way to tell Mathematica to label each decade? I need to use this inside ...
664 views

### Controlling plots with sliders without using Manipulate

Why are the sliders in the following code not affecting the plot? (Without using Manipulate) ...
542 views

### GUI of a Karnaugh Map

I intend to implement a three-variables Karnaugh map with the following code. There are two points I failed to figure out. How to remove the outer double-line border? How to change the toggling into "...
286 views

### How to supress loops in a digraph?

I have the following Code working nicely (Part of this code has been developed by users in this forum). ...
76 views

This Code: ...
95 views

### Optimal resolution of a wave equation

I'm not very familiar with numerical resolution of partial derivatives equations in Mathematica, and I would like to optimize the following code. It's about a self-interacting wave propagating in 2D, ...
103 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 ...
31 views

### Manipulate ListPlot and Sliders [closed]

I'm trying to Manipulate with a Slider a ListPlot. Here is the code: ...
56 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 ...
3k views

### Using NDSolve within Manipulate

I'm trying to use NDSolve inside manipulate. Specifically, I have a series of differential equations with coefficients, k1, k2, <...
90 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. ...
91 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 ...
85 views

...
31 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 ...
229 views

### System of equations does not solve with Solve

I am trying to find the solution in order to highlight the intersection point. ...
78 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 ...
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 ...
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 ...
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. ...
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[0] == 1}, x[t], t] and I'd like to visualize how the solution ...
36 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: ...
57 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 ...
64 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 ...
53 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 ...
65 views

### Getting error when I substitute PDE for ODE

The following code works perfectly: ...
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 ...
61 views

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

I would like to do something like this: ...
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 ...