Browsing through figures, without opening them all
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Voss
el 26 de Sept. de 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
Ver también
Categorías
Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!