Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
ar
ar le 6 Oct 2022
Modifié(e) : dpb le 7 Oct 2022
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?

Réponses (1)

dpb
dpb le 6 Oct 2022
Modifié(e) : dpb le 7 Oct 2022
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.

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Tags

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by