필터 지우기
필터 지우기

Reuse figure/axes properties from figure A for figures B,C,D

조회 수: 2 (최근 30일)
ar
ar 2022년 10월 6일
편집: dpb 2022년 10월 7일
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?

답변 (1개)

dpb
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.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by