Selecting data points from a plot

4 views (last 30 days)
Rachel Falls
Rachel Falls on 18 May 2022
Commented: Star Strider on 19 May 2022
I have a TON of longitude and latitude data points that I used to create this figure of some lakes I am helping research. I would like to isolate the points shown while keeping only the outline of the lake. I want to show flowrates and things from each point, which will make it very messy if I include every single coordinate. I also want the user to be able to tell where in the channel we are looking, hence the need for the outline. Is there an easy way I can do this? I know I could just manually click every point and export them to my workspace but that seems awful.
  2 Comments
Star Strider
Star Strider on 19 May 2022
I thought about using boundary with a shrink factor of 1 (the highest possible value), however when I simulated it, that didn’t give the the result I was hoping for.
One option would be to use islocalmax and islocalmin on appropriate parts of the lake shore (I assume the blue dots define the lake and the white areas are land), although that might require manually selecting the (x,y) regions first for at least some of them.
I’m not posting this as an Answer because it isn’t one. However if an extension of it (with your data to test it with) helps to solve your problem, I’ll post the updated version as an Answer.

Sign in to comment.

Answers (1)

KSSV
KSSV on 19 May 2022
A rough idea would be to use boundary.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by