Questions tagged [interactive]

Question relating user input, manual parameter manipulation, dynamic display of information and other interactive user interface.

Filter by
Sorted by
Tagged with
131
votes
6answers
149k views

Get a "step-by-step" evaluation in Mathematica

Is it possible in Mathematica to get a step-by-step evaluation of some functions; that's to say, outputting not only the result but all the stages that have led to it? If so, how does one do it? ...
39
votes
4answers
2k views

Does Mathematica have a built-in date picker?

Does Mathematica have an interactive date input control that lets the user choose a date by browsing to a calendar view and returning the selected date as a date list? For example, something like the ...
21
votes
1answer
786 views

Mouse motion heat map - live visualization and analysis

Mouse motion heat map is an great way to study spatial attention distribution, styles of movement, reaction, etc. I am trying to design a code that visualizes such heat map. The requirements: 1) It ...
19
votes
3answers
4k views

Extracting the coordinate of a particular point of interest from a ListPlot

Is there a way to obtain the coordinate of a point of interest in a ListPlot? As an example, I have a list containing many sets of 2D coordinates and the plot ...
18
votes
1answer
647 views

How to create interrelated sliders?

Say I want a slider that controls the value of $x$ and another slider that controls the value of $2x$, how would I go about it?
17
votes
3answers
435 views

Is there a way to require confirmation for execution of certain cells?

Often I have Notebooks where I generate several images and export them into files. Now when I want to change one image, I'd like to just re-evaluate the complete notebook, however I generally do not ...
16
votes
2answers
6k views

How to place CDF file in Microsoft Word, Powerpoint or in interactive PDF file?

I would like to create a presentation for my lecture in which I would use Mathematica CDF files. Let's say I want to have such interactive content: ...
14
votes
2answers
1k views

Creating "detached" plots

Is it possible to create detached interactive plots in Mathematica like those in MATLAB, Jupyter (IPython), etc. rather than inline ones? This is an interactive GIF from Rodeo IDE for Python as an ...
12
votes
1answer
284 views

Highlight line in plot

I have a plot with many functions. Some of the functions overlap. In Maple, when you plot functions with legends, you can just click on the legend and it highlights the corresponding line. Does ...
10
votes
2answers
650 views

Distance measures on a map of a game

I have an image which my DM made of map for a DND game and I want to do two things. Click on two points on my map, then based on the key for scaling have Mathematica tell me how far apart those ...
10
votes
1answer
388 views

Can we implement a Neural Network interactively?

Implementing a Neural Network manually need some code and need to make some connections between these components. Can we implementing a Neural Network interactively?If I want to make a net like ...
10
votes
2answers
505 views

Restrict Sensitivity of Locators in LocatorPane

We can restrict the movement of locators in a LocatorPane as follows: In the following example, the first locator's movement is confined to the x-axis and the ...
10
votes
2answers
993 views

How can I get Manipulator control elements to appear on one line?

By default Manipulator produced by Manipulate with Appearance -> "Open" option have two ...
10
votes
0answers
141 views

Autocomplete is too greedy with the mouse

I have a frustrating user experience problem in Linux; a common occurrence when using the notebook might go like: I have, for some reason, used the mouse (e.g. to place the cursor) and then move the ...
9
votes
4answers
764 views

How to Detect Special Key Presses in a Notebook?

We can use: SetOptions[EvaluationNotebook[], NotebookEventActions -> {{"KeyDown","s"} :> Print["triggered"]}] to make the current notebook respond to s ...
9
votes
4answers
498 views

How do you glue a text to a point?

I have a point {0,0} which I call A, and a point {2,1} which I call B. I want to make an image that looks like the one below. When I resize the image I want the text labels to follow the points, so ...
9
votes
1answer
1k views

Want Interactive PlotRange of Graphics[{}]

I am trying to do: ...
9
votes
1answer
316 views

How to get Mathematica to wait until I answer a prompt?

I am trying to write some code that does the following... Closes the current notebook, then Prompts user to decide if they want to save change before closing, then Waits for user to submit their ...
9
votes
1answer
173 views

Is it possible to embed the Manipulate into a WordPress post?

I have a Manipulate object: Manipulate[n, {n, 1, 100}]. I want to put it in my WordPress blog post. Should I ...
9
votes
0answers
123 views

How to suppress the escape window?

Cross posted here If we first enter an empty string (""), and then paste something within the quotation marks, the following dialog box will pop up: I recorded a ...
8
votes
1answer
426 views

Is there a way to "freehand draw" in Mathematica, and pick up the plotted data in real time?

What I want is to be able to draw some drawing with a simple pen tool (as with the Freehand Line from the Drawing Tools of Mathematica), while a script runs every time something is added to the ...
8
votes
2answers
532 views

How to make the bar be a button?

This is a BarChart: ...
8
votes
2answers
140 views

Is it possible to get the locations and dimensions of all boxes in a StandardForm expression renderation?

I can select all the boxes in a StandardForm rendered expression, like I've selected the left parenthesis in the picture above. Is it possible to get the positions and dimensions of all of these ...
8
votes
1answer
983 views

Combine a dynamic module with a manipulation

I would like to combine a dynamic module with a manipulation, whilst maintaining the functionality of both. I have tried things like Show and ...
7
votes
2answers
354 views

Can individual locators in LocatorPane be temporarily disabled?

This follows up on another question about the sensitivity of Locators in a a LocatorPane. I would like to be able to enable/disable individual locators in a LocatorPane. In the simplified version of ...
7
votes
1answer
626 views

How to create keypress simulation program?

Main Problem I'm trying to create a widely applicable keypress simulation program, but I don't know how to use Java so I can only search for Q&As on the site, which is inefficient. So I want to ...
6
votes
2answers
524 views

Interactive grid

I would like to create an interactive grid, whereby one number from a grid is selected by the cursor ("3" in the example below), and all other numbers in the grid are highlighted that are related to ...
6
votes
4answers
225 views

Dynamic Linkage of LocatorPane and InputField

How do I get the InputField to coordinate with the LocatorPane so that a change in each control changes the other to be in agreement? It would be nice if the function was self-contained and was ...
6
votes
2answers
253 views

view is not fixed completely regardless of vewpoint

If I run code Graphics3D[Cuboid[], ViewPoint -> {1, 1, 1}] the output is After rotating (by mouse click and drag) the output in some direction, and run the ...
6
votes
1answer
370 views

Finding cropped region coordinates

Mathematica now includes support for fairly involved interactive manipulation of displayed graphics, which includes cropping (ctrl-drag). Is there some way to get the crop dimensions set by the user, ...
6
votes
1answer
156 views

How to make a cell highlight on mouse down?

When a cell has WholeCellGroupOpener set to True, it becomes a clickable button that toggles its cell group open and closed. How can I make the cell change color ...
6
votes
0answers
887 views

Embed 3D objects from Mathematica, in a pdf

Acrobat Reader 9+ supports interactive manipulation of 3D objects. See this file for example - another widely used example are PRC objects which may be produced by Asymptote. Exporting animations ...
5
votes
2answers
268 views

How to create 2d trajectory by moving mouse over plot

When I move with the mouse over a plot with a given plot range I would like to store the coordinates of the corresponding trajectory in a list and plot it. I have seen that ...
5
votes
1answer
287 views

Create a CDF file with a plot that cannot be edited by double-clicking

I have created a CDF file that contains a Manipulate object with a plot. I intend to embed the file in a web site, so that users can use interactive sliders to ...
5
votes
2answers
148 views

Locator-based abscissa ranges widget

I'm trying to implement a widget that will enable users to graphically determine certain abscissa ranges in a 2D plot. I've started by coding a prototype, whose output looks like this: The idea for ...
5
votes
1answer
887 views

How to create 3D architectural models in this shape with interactive faces?

I am a non-technical person in the imageProcessing side,so I don't have any idea how can I make polygon in the below shape... the above polygon is a 3D ...
5
votes
2answers
99 views

Adding interactive text

I have two text style cells as shown in the picture (second one is hidden). Is it possible to add an interactive button so that if someone clicks on that button/...
5
votes
2answers
161 views

Strange behavior of Print, Do, and merged output cells

The command Do[Print[i], {i, 1, 3}] does what you expect: creates 3 output lines of 1, 2 and ...
5
votes
1answer
326 views

Create a point on a phase portrait and draw a trajectory flow following the vector lines by time-passing

I wrote a simple 2D-phase portrait sample and still have a unsolvable question about adding a new feature on the plot. Specifically, I would like to drop down a point on the plot by each mouse-click ...
5
votes
1answer
216 views

Confusing font information from CurrentValue

I'm trying to programmatically get the width of a character in Mathematica's default fixed-width font, Courier. I believe CurrentValue holds the answer but I'm ...
5
votes
1answer
361 views

Using the keyboard to interactively and dynamically specify coordinates in a grid (a la Battleship board game)

In Mathematica, it is possible to create a Table or Grid of \[Placeholder] boxes. For ...
5
votes
1answer
248 views

Using the mouse coordinates to index a matrix

I would like to "write" on to a matrix using the mouse. That is, I would like to use the integer value of Locator coordinates (p) to index a matrix. Then, if the mouse button is down, write a 1 in ...
5
votes
1answer
828 views

Export and manipulate 3D plots

How can I export 3D Mathematica plots such that I can put them into a presentation and still being able to rotate them? Is there a specific format or does it depend on the program used to create the ...
5
votes
1answer
160 views

How can I execute a sequence of statements interactively?

I'm fairly new to Mathematica. Suppose I have the following function: f[x_Integer] := Module[{y, z, r}, y = 5; z = 10; r = x + y + z; r ]; and I ...
5
votes
1answer
80 views

Control plot details when expanding the figure by hand

Mathematica 11.3 So when I use PlotLabels -> "Expressions" and expand the plot by dragging the corner, the expression goes beyond the plot frame. MWE: ...
5
votes
0answers
103 views

Visually identifying differences between two Mathematica functions

Context Let us assume we have two functions defined in Mathematica. I am interested in spotting the differences in the code for the two functions. Example ...
4
votes
2answers
493 views

Conveniently rotate animated 3D graphics

3D graphics can be easily rotated interactively by clicking and dragging with the mouse. Is there a simple way to achieve the same for animated 3D graphics? I would like to rotate them interactively (...
4
votes
2answers
638 views

Interactive ListPlot by mouse clicking

Say I have a list of 2-tuples that is visualized by ListPlot. Each 2-tuple is also associated with another graph. Now what I want to realize is to display the ...
4
votes
1answer
125 views

How can I make my code wait until two actions are done?

This question was inspired by yode's question found here. I think yode asked the wrong question, so I am asking what I think is the right one. Consider a situation in which the user has to choose ...
4
votes
1answer
545 views

How to change the aspect ratio with drawing tool?

I'm drawing an image in editing an slide show with the drawing tools. But the aspect ratio of the created drawing seems fixed and not changeable with mouse dragging the border and corner as in other ...