Info
This question is closed. Reopen it to edit or answer.
Get Tags for All Brushed Objects
1 view (last 30 days)
Show older comments
How can I access the 'Tag' of each brushed object?
Here's a simple example of what I want to accomplish using two lines.(Note: In this example the 'Tag' fields are empty, but let's assume that in my real application they contain text information...)
plot(1:1:9,9:-1:1); hold on; plot(1:1:9,1:1:9,'r');
When I brush a number of graphics objects > right click > Create Variable, the following dialog pops up. It shows the brushed objects, the Type, and the Tag. I would like to extract the information from the 'Tag' field.
I tried this, but it just returned an empty GraphicsPlaceholder array.
>> findobj(gcf,'-property','BrushData')
I'm using R2015a. Most of the examples I found seemed to be from older versions of Matlab, so maybe something changed with HG2?
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!