Clear Filters
Clear Filters

Selecting one or more objects in a 2D plot

4 views (last 30 days)
HJ
HJ on 21 Nov 2013
Hello all,
I'm looking for a GUI-based way to select one or more discrete objects in a simple 2D plot. I looked at RBBOX, which I can use to extract the coordinates of a bounding box -- but then it appears I have to go through all the plot's children handles to find those whose XData and YData fit the chosen ranges. And if I want to select multiple objects that aren't all enclosed in a single rectangle (like control-click in Windows Explorer or shift-click in MacOS Finder), RBBOX won't really work.
Can anyone suggest a clean way to do this?
Thanks in advance,
-H

Answers (0)

Community Treasure Hunt

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

Start Hunting!