Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create an interactive tool for selecting points by clicking
ResourceFunction["InteractivePointSelector"][] creates an interactive tool for selecting points. | |
ResourceFunction["InteractivePointSelector"][n] creates an interactive tool for selecting points, organized as an Association of n distinct classes. |
| "ClassLabels" | Automatic | labels of n distinct data classes |
| Iconize | False | iconize selected points |
| PlotRange | {{-10,10},{-10,10}} | range of coordinates in the interactive panel |
| PointSize | Large | size of data points |
| ImageSize | 350 | size of panel |
Generate a list of points by clicking in the coordinates:
| In[1]:= |
| Out[1]= | ![]() |
Click on the "Copy" button and paste the selected points:
| Out[1]= | ![]() |
Generate a list of points labeled into three different classes:
| In[2]:= |
| Out[2]= | ![]() |
Click on the "Copy" button and paste the selected points:
| Out[2]= | ![]() |
Use the Iconize option to iconize the selected points:
| In[3]:= |
| Out[3]= | ![]() |
Copy and past the iconized data:
| In[4]:= |
See some of it:
| In[5]:= |
| Out[5]= |
Specify class labels with the "ClassLabels" option:
| In[6]:= |
| Out[6]= | ![]() |
Copy and paste the data with their class labels:
| Out[6]= | ![]() |
Change the range of selection with the PlotRange option:
| In[7]:= |
| Out[7]= | ![]() |
Copy and paste the coordinates:
| Out[7]= | ![]() |
Change the PointSize option:
| In[8]:= |
| Out[8]= | ![]() |
Change the ImageSize:
| In[9]:= |
| Out[9]= | ![]() |
Create labeled data:
| In[10]:= |
| Out[10]= | ![]() |
Copy and past the data:
| In[11]:= |
Test different classification methods on the data and visualize them with ResourceFunction["DecisionBoundaryPlot"]:
| In[12]:= | ![]() |
| Out[12]= | ![]() |
Labels must match the number of classes:
| In[13]:= |
| Out[13]= |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License