- #1
- 744
- 285
This is supposed to show a locator that we can drag anywhere in the plot:
Initially it appears at (2.5,3) but as soon as I start dragging the locator, it snaps to (1,1) and won't move out of the square x<1, y<1.
Strangely, this problem happens running Mathematica 12.1.1 on a Raspberry Pi. It works correctly on the cloud version at wolframcloud.com.
According to the doc, the locator's range should be equal to the PlotRange of the graphic. Since it's not taking this default, is there a way to specify the locator's range?
Code:
Manipulate[
ListPlot[ {{0.5, 0.5}, p1},
Joined -> True,
PlotRange -> {{0, 5}, {0, 7}}, ImageSize -> {250, 250}
],
{p1, {2.5, 3}, Locator}
]
Initially it appears at (2.5,3) but as soon as I start dragging the locator, it snaps to (1,1) and won't move out of the square x<1, y<1.
Strangely, this problem happens running Mathematica 12.1.1 on a Raspberry Pi. It works correctly on the cloud version at wolframcloud.com.
According to the doc, the locator's range should be equal to the PlotRange of the graphic. Since it's not taking this default, is there a way to specify the locator's range?
Last edited: