Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

Get Tags for All Brushed Objects

2 views (last 30 days)
Alex
Alex on 28 Jul 2016
Closed: MATLAB Answer Bot on 20 Aug 2021
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?

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!