Reuse figure/axes properties from figure A for figures B,C,D
4 ビュー (過去 30 日間)
古いコメントを表示
I have a bunch of already saved matlab figures. I have edited the axes and properties on figure A to make it publication quality. I am looking to utilize the same set of axes and properties on already created figures B,C,D. Is there a way to do this through code?
0 件のコメント
回答 (1 件)
dpb
2022 年 10 月 6 日
編集済み: dpb
2022 年 10 月 7 日
hAxGolden=gca; % the gold standard
hF=figure; % create new figure
hAx=copyobj(hAxGolden,hF); % and put the fixed-up axes in it...
Alternatively, you can just save the figure with the fancy axes and reload it, add whatever data and then save/print it to new file.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!