Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to have two controls that govern a single variable in a Manipulate? Specifically, I am using a Locator to select an {x,y} coordinate, but I would also like the user to be able to directly specify x and y, in InputFields.

Similar questions have been asked, but not with Manipulate and not with a 2D variable.

share|improve this question
Yes, just put in the controls with the same variables. – Michael E2 Mar 14 '14 at 19:14
You might find this question instructive. – m_goldberg Mar 14 '14 at 20:36

For example:

 LocatorPane[Dynamic[{x, y}], Graphics[{Red, Disk[]}]],
 {{x, 0}, InputField},
 {{y, 0}, InputField}

Mathematica graphics

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.