Questions tagged [manipulate]

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

148 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
14
votes
0answers
495 views

Initial values in Manipulate are hijacked by existing global variable values

Is the following behaviour a bug? It's the same in all versions between 9.0-10.2.0. Let's try this simple Manipulate with the initial value of ...
13
votes
0answers
706 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 ...
9
votes
0answers
311 views

How can I add column-rearrangement-by-mouse-dragging to my dataset display function?

A subject that I seem to take at heart... I was expecting an upgrade of the default Dataset display in MMA 10.3.1. It did not happen. Among the features I would have liked to see improved is a better/...
7
votes
0answers
388 views

How to save animation generated in Jupyter notebook?

I'm playing with the Free Wolfram Engine for Developers together with Wolfram Language kernel for Jupyter notebooks. To my surprise, Manipulate/...
7
votes
0answers
321 views

Manipulating the pitch of a sound

After reading Manipulating a continuous stream of sounds I have to ask about controlling the frequency of a Sin sound in a continuous manner, with a ...
6
votes
0answers
255 views

Does ContourPlot3D leak assignments inside Manipulate?

Update 5 Aug 2015 -- Karsten 7. found a minimal example of leaking not involving Manipulate, so the role of Manipulate seems ...
6
votes
0answers
312 views

Trouble understanding TrackedSymbols

While developing a relatively complex demonstration for Manipulate I encountered the problem that my output was unintentionally self-updating in an endless loop. ...
4
votes
0answers
45 views

NDSolve`ProcessEquations inside Manipulate

NDSolve and NDSolve`ProcessEquations can handle equations with vectors on each side like this one: ...
4
votes
0answers
77 views

Choices with labels in Manipulate: is this a bug?

Bug introduced in 10.0 or earlier and persisting through 11.3 The following control form is documented for Manipulate: If I evaluate ...
4
votes
0answers
425 views

DynamicModule, SaveDefinitions and global functions

Unfortunately, I had not checked stackoverflow, because there, the exact same behavior was already reported. Please see the Q&A "SaveDefinitions considered dangerous". Up-front, I'm on ...
3
votes
0answers
67 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 ...
3
votes
0answers
132 views

Image Processing: Detecting certain edge features over varying contrasts

Images and description- • The images are obtained from the frames of a video (>1000 images) • As shown, there are contrast variations between the images • The bubble shifts horizontally ...
3
votes
0answers
168 views

Possible bug in Mathematica?

I am having trouble with the simple code: Manipulate[k, {k, 0, 10}] Which gives as an output the usual manipulate box, however, most of the times when scrolling ...
3
votes
0answers
60 views

Import/export manipulate state in file

Is it possible to export the state of Manipulate with big number of parameters in file and then restore the parameters of Manipulate from this file?
3
votes
0answers
63 views

Consistently slow to display first Manipulate on Mma launch

Since Mathematica 10.1 I've suffered a significant wait time whenever I display my first Manipulate after launch Mathematica on my Macbook [running OS X, El ...
3
votes
0answers
73 views

Manipulate in Linux and Mathematica v 10

I am having issues with Manipulate in Mathematic 10.4.1 under Linux. Simple: Manipulate[i, {i, 0, 10}] Result in frozen ...
3
votes
0answers
90 views

Optimization for iterating and plotting a matrix product and its elements?

I have an iterative matrix product of this type $$ \begin{pmatrix}y_{n+1} \\ x_{n+1} \end{pmatrix} = \begin{pmatrix} A & B \\ C & D \end{pmatrix} \begin{pmatrix}y_{n} \\ x_{n} \end{pmatrix} $...
3
votes
0answers
134 views

Showing Mathematica's dynamic UI in external Java programs

I want to run Mathematica from an external Java program and display an interactive app in my own Jpanel. Is it possible? When I tried using MathGraphicsJpanel, I am getting only the snapshot of the ...
3
votes
0answers
608 views

Manipulate causing frequent crashes

I am putting together a dynamic 3D plot which is to be "manipulated". The code does what I want it to, but keeps crashing all the time. Sometimes it crashes the kernel, so I just have to run the ...
3
votes
0answers
256 views

Is 450 lines of code in one block too much?

I'm using Manipulate to play around with some graphs (up to 6 vertices). Users can work with one graph or find the union/intersection/difference between two graphs. The user can display the graph ...
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 - ...
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. ...
2
votes
1answer
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 ...
2
votes
0answers
76 views

Interactive Graph Construction

I'm interested in constructing an interactive GUI graph generator, where I can add and delete vertices and edges. I'm aware of this question, and this is but a quick follow-up to this answer. I would ...
2
votes
0answers
135 views

Drawing a cyclogon

Is it possible to draw the path of a point on the boundary while the polygon is rolling, or writing a function of theta similar to the cycloid parametric equations: $$ x = r (\theta - \sin(\theta)),\...
2
votes
0answers
37 views

Programmatically Inject Logical Vector into Manipulate Checkboxes or Vice-Versa

I am building a large Manipulate application with about 50-60 checkboxes through which the user can select entities to be drawn on a main canvas. The main drawing routine, called from within ...
2
votes
0answers
45 views

How to allow Image3D to be dragged on Wolfram Cloud?

I have an 3D image as below, and then I deployed it to Cloud with Public permission. However, in the cloud, it is just a "static image", and user can't drag the image interactively (to change the ...
2
votes
0answers
46 views

Manipulate issue

I am new to Mathematica and so far I was able to find answers to my problems so far, but not for this one. I hope you are able to help me. I have 4 variables that determine a feasible "area". It the ...
2
votes
0answers
91 views

Keyboard control of 1d and 2d sliders in Manipulate

I would like to be able to control the sliders in Manipulate via keyboard control (not just by dragging with the mouse). How can I do this? I've seen this post, but unfortunately the keyboard part ...
2
votes
0answers
65 views

Create tone with adjustable frequency/amplitude

How can I play a tone and adjust its frequency and amplitude? As an example, say I wanted to play a SquareWave with a slider for frequency and amplitude. Using a <...
2
votes
0answers
50 views

ParametricPlot causes Manipulate to update when local & external variable share the same name

Here is a strange behavior reminding me of a previous bug when Manipulate updates without reason, but it is probably not the same reason here and seems to be ...
2
votes
0answers
49 views

Reading out Manipulate controls dynamically generated in a list

I've been trying to dynamically generate Manipulate controls in a list, like so: ...
2
votes
0answers
114 views

Manipulate[] does not work properly

...
2
votes
0answers
113 views

Nested Dialog Input

I have a blocking Dialog that is taking input from another dialog internally. This is how I have coded ...
2
votes
0answers
78 views

How constrain a Locator to follow a list of points inside Manipulate?

I would like position two locators on discrete positions which are list's elements and represent a list of point's coordinates. I've ani image and on this I've detected ten circle shape. Now I'd like ...
2
votes
0answers
51 views

Bookmark name not editable

The bookmark's name in an embedded cdf is not editable. I used the following code to create a cdf: ...
2
votes
0answers
241 views

Substitute for 'InputField' in Wolfram Demonstration

My application relies on the ability of users to enter text, and has several settings with a huge range of potential values best entered as strings (to comply with Wolfram's admonition to "choose your ...
2
votes
0answers
87 views

Precision of sliders in WebMathematica

I have been developing a Manipulate plot to put on the web. One of my parameters varies over a small interval, ...
2
votes
0answers
126 views

Strange double evaluation using MorphologicalGraph

(MMA 9.0.0 on Mac OS/X 10.8) Please consider the following snippet (this is as SMALL as I could make it -- my attempts at making a smaller repro-case eliminated the effect that I am investigating) <...
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 ...
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: ...
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: ...
1
vote
0answers
32 views

Manipulate works OK on desktop, but not in cloud

I have a problem with following Manipulate. In desktop Mathematica everything is okay but when I evaluate this code in cloud and publish the output cell, it flickers and both the values and chart aren'...
1
vote
0answers
14 views

Different behaviour between local notebook and Cloud deployed Manipulate function

I've been happy with my development in the Wolfram Language but haven't played with deploying manipulatable content before. I've written a rather basic Manipulate ...
1
vote
1answer
55 views

How do I initialise a compound expression in Animate? Or, how do I have an expression evaluate on startup?

I have written a notebook with a few functions I defined. These functions describe a way of generating graphs using 2 inputs. e.g. graph[n_,s_] := Graph[...] I have ...
1
vote
0answers
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. ...
1
vote
0answers
69 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 ...
1
vote
0answers
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 <...
1
vote
0answers
54 views

Manipulate updates due to variable changes outside manipulate: can this be stopped?

I have created a large notebook where i have two or more manipulates whose execution is supposed to wait till I click an update button. The button operates a dummy update variable which is tracked in ...
1
vote
0answers
29 views

How to include a meter in Manipulate that shows a value calculated from the manipulate dynamic variable?

I'm trying to make a visualization of grid (representing magnetic states) and I want to include a meter that shows a variable calculated from the manipulate index (of the form ...