Mathematica
DynamicModule[{list = {}},
EventHandler[
Dynamic[Framed@
Graphics[{BSplineCurve[list], Red, Line[list], Point[list]},
PlotRange -> 2]], {{"MouseClicked",
1} :> {AppendTo[list,
MousePosition["Graphics"]]}}, {"MouseClicked", 2} :>
Print[list]]]
I want to do the above at home where I do not have Mathematica. Use whatever tool you want, I like to use Python and R but happy with any solution candidate. The first thing that came to my mind was RStudio and this question here but I am unsure whether some better way to do this.
How can I do the interactive-GUI-innovating over X?
Procedure of the Mathematica -snippet outlined
1. you click points
2. you will see BSplineCurve formating between the points and points are red
3. points are saved to an array
4. when finished, you click `right-mouse-button` so array to stdout
?locatorin R? - GSeelocatorandidentifywork in R? Perhaps with an example? Even though I read the manuals, I cannot understand the -- tried to find examples such as here but struggling with them, some firing NullPointException etc. - hhhlibrary(quantmod); getSymbols("SPY"); chartSeries(SPY); zooom()Then click two places on the chart, and it will zoom in based on where you clicked. So, examine the source ofzooom- GSee