Questions tagged [locator]
Questions on position tracking, especially using Mathematica coordinate tracking functions and control objects such as Locator, LocatorPane, and ClickPane.
110 questions
2 votes
1 answer
133 views
LocatorPane w/multiple locators and constraints
I'd like to have multiple (~4) locators in a LocatorPane background, each with their own location constraints. I tried to use ideas from this question but couldn't get very far. This working code gets ...
1 vote
1 answer
95 views
Interactive input of integer-coordinate 2D points
I'd like code to allow interactive input of a chain of 2D points, which are saved in some global variable. And in addition, I would like to constrain the coordinates to be integers. The code below is ...
0 votes
1 answer
99 views
TrackingFunction does not work when more than one Locator in Manipulator
TrackingFunction example Manipulate[ Graphics[Circle[], PlotRange -> 2], {{pt, {0, 0}}, Locator, TrackingFunction -> (pt = #/Max[Norm[#], 1]; &)}] ...
0 votes
0 answers
103 views
Reset Button for Manipulate and freezing Sliders
I work on a Bezier curve subdivision project. I managed to implement it, but I faced some problems. (The code of my program is presented below.) Firstly, if I change parameter n after changing other ...
0 votes
1 answer
203 views
Two locators in separate plots using Manipulate
I want to create two figures, side by side, each with an independent Locator. I want to do this using Manipulate, because I can easily use information from each Locator in both plots. This answer did ...
7 votes
2 answers
329 views
Manipulate[] with interdependent Locators
how would I create a Manipulate to draw a InfiniteLine between two Locator? The first Loactor should control the x/y of the first point together with the y of the second one. The second Locator should ...
2 votes
1 answer
109 views
How to restrict a locator to a line that changes based on manipulated variables?
I am trying to have a locator move along a manipulated line but every time I manipulate the variables the locator doesn't move across the new line. How can I get the locator to move across the line ...
3 votes
1 answer
211 views
Removing locators breaks labels
I have some locators in a LocatorPane and want to let users remove them. Unfortunately, it seems doing this conflicts with the ...