Browsing through figures, without opening them all
7 views (last 30 days)
Show older comments
Hi!
I often print/save figures in png-format or similar, in order to be able to quickly browser through results, either using a photoviewer-program or plotting them into a pdf. However, In the the matlab-figures i usually include hidden data in for example lines and buttons/functions which I would be interested in accessing when browsing through them. (ex. buttondownfunctions on lines etc.)
I'm wondering if there is a way of browsing trough .fig files in a fast way, without opening them each separately?
Regards
Peter
0 Comments
Answers (1)
Voss
on 26 Sep 2022
You can use load to inspect .fig files programmatically:
f = figure();
plot(1:10,'ButtonDownFcn','disp(''ok'')');
saveas(f,'1.fig')
delete(f);
ff = load('1.fig','-mat')
ff.hgS_070000
ff.hgS_070000.children
ff.hgS_070000.children(1).children(1)
ff.hgS_070000.children(1).children(1).properties
ff.hgS_070000.children(1).children(1).properties.ButtonDownFcn
See Also
Categories
Find more on Specifying Target for Graphics Output in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!