Assume I have a manipulate with two graphics/plots as outputs. One of my parameters is a locator. How can I select in which of the plots the locator appears?
Let's say I have the output given by this:
Manipulate[{Graphics[Arrow[{{0, 0}, p}], PlotRange -> 10,
Axes -> True],
Plot[p[[1]]*x + p[[2]], {x, 0, 10}, PlotRange -> 50]}, {p, Locator}]
I want to change the locator from the graphic on the left to the plot on the right.
Here is a screenshot of the code running:
12.0.0 for Linux x86 (64-bit)
. Works fine for version12.2
and higher. $\endgroup$