Background: I want to split graphics in a Manipulate in several parts in a tabview control. But the tabview somehow interferes with the locators as in the following simplified example:
Manipulate[
TabView[{aa -> Graphics[Line[{{0, 0}, p}], PlotRange -> 1],
bb -> 1}] , {{p, {1, 1}}, Locator}]
Question: How to use Locators on a graphic in a tabview. ( How to get the snippet above working ? )
EDIT:
I left out too much in the previous example, this is a better description.
Manipulate[
pts1 = pts;
TabView[{
a -> Graphics[Line[pts1]],
b -> Graphics[Line[pts]]}],
{{pts, ptsI}, Locator, LocatorAutoCreate -> All},
Initialization -> {pts = {{0, 0.5}, {0, 0.6}}}]
So, there is one set of data, in this example pts. In one part of the display (A) the data is modified, the data is then shown on ( B ). -



LocatorAutoCreatedoesn't work as expected for me... Instead of creating a new one, it simply moves the previously selected one. – rm -rf May 14 '12 at 02:45LocatorAutoCreatetoTruefromAllin OP's question. With this setting, as belisarius notes, one needs to useAlt-Clickto create a new locator. – kglr May 14 '12 at 04:24Alland created locators with a simple click and tried that here too :) – rm -rf May 14 '12 at 04:30LocatorAutoCreaterequires an additional button to be pressed. On MacOS this is the Mac-Button next to the Spacebar. Look up the documentation forLocatorAutoCreateon your OS. – Steffen Jaeschke Dec 13 '20 at 19:08pts1 = pbut didn't update all the instances wherepts1occur. – Michael E2 Dec 13 '20 at 20:08