comparison scripts/plot/util/findobj.m @ 31088:06c64a878fc0

findobj.m: Also report properties with aliased names (bug #62612). * findobj.m: Call "__get__" which returns visible and hidden properties of a graphics object rather than "get" which only returns visible properties.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 10 Jun 2022 15:09:53 +0200
parents 29573bab8328
children 597f3ee61a48
comparison
equal deleted inserted replaced
31084:037c1e768b56 31088:06c64a878fc0
236 endwhile 236 endwhile
237 237
238 if (numpairs > 0) 238 if (numpairs > 0)
239 match = true (numel (h), numpairs); 239 match = true (numel (h), numpairs);
240 for nh = 1 : numel (h) 240 for nh = 1 : numel (h)
241 p = get (h(nh)); 241 p = __get__ (h(nh));
242 for np = 1 : numpairs 242 for np = 1 : numpairs
243 fields = fieldnames (p); 243 fields = fieldnames (p);
244 fieldindex = find (strcmpi (fields, pname{np}), 1); 244 fieldindex = find (strcmpi (fields, pname{np}), 1);
245 if (numel (fieldindex)) 245 if (numel (fieldindex))
246 pname{np} = fields{fieldindex}; 246 pname{np} = fields{fieldindex};