Browsing through figures, without opening them all
7 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Voss
2022 年 9 月 26 日
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
参考
カテゴリ
Help Center および File Exchange で Specifying Target for Graphics Output についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!