Skip to main content
13 votes
Accepted

How to make simple closed curve that can be smoothly morphed using locators

Interpolate the x and y values separately and use PeriodicInterpolation by appending the first value of each list at the end: ...
halirutan's user avatar
  • 113k
12 votes

Manipulate[] with interdependent Locators

Update 2: A variation on RobertNovak`s answer to keep the horizontal axis of the second locator fixed: ...
kglr's user avatar
  • 398k
10 votes

Constraining locators in a locator pane to a specified data set

Use Nearest[]: ...
J. M.'s missing motivation's user avatar
9 votes
Accepted

How to make a Locator3D/LocatorSphere?

Here's something to get you started with a new design. First we make the function that actually makes a DynamicModule. It supports having more than just a sphere ...
b3m2a1's user avatar
  • 46.9k
9 votes
Accepted

How to control two different variables with Locator?

is this what you mean? ...
Nasser's user avatar
  • 146k
8 votes
Accepted

How to add a point and drag it into position in a 3D plot?

This is not a complete answer (nor a robust one, likely), but here's one option (basic method stolen from @Heike's answer here). Some notes on adding new points: For adding points, I used a right-...
Anne's user avatar
  • 1,257
7 votes
Accepted

Context-aware Locator

I don't think you can change the compositing operator but you can dynamically change the appearance. A simple example: ...
Simon Woods's user avatar
  • 85.1k
7 votes

Mean RGB value of a locator region?

...
kglr's user avatar
  • 398k
6 votes

How do I determine which Locator is selected in a LocatorPane with multiple Locators?

Does this work for you? ...
Lukas Lang's user avatar
  • 34.1k
6 votes

How to add a point and drag it into position in a 3D plot?

Here's a way to make a locator pane that allows you to move your points in the plane of the current ViewMatrix: ...
b3m2a1's user avatar
  • 46.9k
6 votes
Accepted

How do I determine which Locator is selected in a LocatorPane with multiple Locators?

You may use MousePosition set to the "Graphics" of the LocatorPane with ...
Edmund's user avatar
  • 42.4k
5 votes
Accepted

Overlaying an image with a movable disk that can be resized

Here is some code that solves your moving disk problem. ...
m_goldberg's user avatar
  • 108k
5 votes

How do I determine which Locator is selected in a LocatorPane with multiple Locators?

Does this work for you? ...
ktm's user avatar
  • 4,242
5 votes
Accepted

How to rotate a graph with a locator?

(1) You can use Locator as a graphics primitive and rotate all the graphics primitives, and (2) use Experimental`AngularSlider ...
kglr's user avatar
  • 398k
5 votes
Accepted

How can I prevent TabView from resetting the current tab?

Add some Dynamic[] and a variable to keep track of the selected tab: ...
Michael E2's user avatar
  • 238k
5 votes

Removing locators breaks labels

Does it fit your needs: ...
Kuba's user avatar
  • 137k
5 votes
Accepted

How to use multiple Locators with different TrackingFunction in Manipulate?

You can use a different construction to create multiple Locators: ...
Carl Lange's user avatar
  • 13.1k
5 votes
Accepted

Calligraphic Pen Signature Pane

I am not familiar with TouchPosition but I got something to work with LocatorPane ...
N0va's user avatar
  • 3,410
4 votes
Accepted

Performance issue of Manipulate with NSolve and Locator

This is a must read before we proceed: AdvancedDynamicFunctionality especially Nesting Dynamic and ...
Kuba's user avatar
  • 137k
4 votes

References in the map + References in a Locator

I see you were not up to working up the hint I gave you in a comment to my answer here. So is here how a coordinates callout can be added to the moving disk. I throw in a cross-hair for free. ...
m_goldberg's user avatar
  • 108k
4 votes

A locator that is visible only when it is used

The last command in the question contains a solution: the graphics locator does what we want, we do not need the pane locator. So we position the graphics locator on the pane locator and make the pane ...
Fred Simons's user avatar
  • 10.2k
4 votes

Insert new points at specific places in the Locator Pane?

A version with buttons. First thing to note: I don't know how to subscribe to the Alt + click event and do appropriate things when it triggers. This is why mixing point adding by Alt + click and right-...
BoLe's user avatar
  • 5,859
4 votes

Insert new points at specific places in the Locator Pane?

I guess you could do everything you wanted but you will have to abandon the general Manipulate and program your own LocatorPane. ...
BoLe's user avatar
  • 5,859
4 votes

Dynamic locator: update to new position inside `Manipluate`

Body of Manipulate is effectively wrapped with Dynamic so we can just put it there: ...
Kuba's user avatar
  • 137k
4 votes

Dynamic locator: update to new position inside `Manipluate`

Example Code ...
e.doroskevic's user avatar
  • 5,979
4 votes
Accepted

How to implement LocatorAutoCreate functionality using EventHandler[]?

Does it fit your needs? ...
Kuba's user avatar
  • 137k
4 votes

Manipulate[] with interdependent Locators

Finaly thanks to @kglr the locators move in the most intuitive way. The second point now only moves in y while the first one is draged arround. ...
Robert Nowak's user avatar
3 votes

How to rotate a graph with a locator?

Manipulate[ Rotate[Graphics[Plot[x^2, {x, 0, 5}]], r = ArcTan[r1[[1]]/r1[[2]]]], {{r1, {1, 1}}, Locator}]
David G. Stork's user avatar
3 votes

Initial Value of Locator in Manipulate

You can use Initialization: Manipulate[u, {u, Locator}, Initialization :> (u = {0, 0})]
eldo's user avatar
  • 77.6k
3 votes
Accepted

How to use locator continuously with grid of graphics

Wrap p and Plot[...] in the last row of your grid with Dynamic: ...
kglr's user avatar
  • 398k

Only top scored, non community-wiki answers of a minimum length are eligible