Browsing through figures, without opening them all
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Voss
le 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
Voir également
Catégories
En savoir plus sur Specifying Target for Graphics Output dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!