1 reputation
1
bio website
location
age
visits member for 2 years, 3 months
seen Jul 12 '13 at 17:17

Jan
19
awarded  Teacher
Jan
19
comment Why is the Locator snapping back to the original coordinates? How can I prevent this?
Silvia's example 2 doesn't need DynamicModule: try Module[{v1 = {2, 0}, v2 = {-1, 1}}, Graphics[{Line[{{0, 0}, Dynamic[v1]}], Locator[Dynamic[v1]], Locator[Dynamic[v2]]}, PlotRange -> 3, Frame -> True]]. This runs smoothly.
Jan
19
comment Why is the Locator snapping back to the original coordinates? How can I prevent this?
I cannot reproduce it. A simpler code (reproducing Szabolc´s original question; Silvia doesn´t include the circle) would be p = {3, 3}; Graphics[{Circle[{5, 5}, 5], Locator[Dynamic[p]]}, Axes -> True, GridLines -> {{3}, {3}}] And, yes, I can easily position the locator to any point between $x=3$ and $x=3.5$ for a given $y$.