Get mulitple figure handles
Show older comments
Hello together,
I'd like to use the mouse, to select multiple figures and then somehow get the handles of all the selected figures. Is there a way to do this?
Thank you for your effort.
4 Comments
Adam
on 25 Jul 2016
Not that I am aware of, though others may be able to suggest something.
Brendan Hamm
on 25 Jul 2016
Sure there are ways that you could do this, but likely there is something more to what you are trying to do which may have better solutions.
1. Do you want these to appear in the Base workplace or should these handles be used somewhere else?
2. Why would you not just create the handles at creation time?
3. Do you need them to each be a different variable?
4. What do you plan on doing with the "selected" figures after?
5. Should you be able to un-select a figure window?
Varun Gunda
on 2 Aug 2016
It is my understanding that you want to select multiple figures using mouse and get the handles of multiple figures.
You can get the handle of the current figure using mouse by configuring the call back function and using the gcf command.
You can also create handles at the time of creating figures.
Benjamin Kraus
on 2 Aug 2016
There is no way to "select" multiple figures simultaneously. There is only one active figure at a time, and no built-in notion of "selected" figures.
I agree with Brendan, more context about what you are trying to accomplish will help people propose workarounds.
Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!