Editing existing figures to overlay with different colors
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have several figure files with the same number of subplots that I need to edit and overlay, subplots1.fig, subplots2.fig, and subplots3.fig.
The problem is that they are all plotted in red and when plotted on top of each other become indistinguishable. Is there a simple way to change the color of a line plotted on a figure before overlaying it on another figure? Loading and rewriting the data to plot later would be very expensive and untimely.
Regards,
0 commentaires
Réponses (1)
Yuvaraj Venkataswamy
le 18 Juin 2018
Use this.
if true
f1 = open('f1.fig');
f2 = open('f2.fig');
a1 = get(f1, 'Children');
a2 = get(f2, 'Children');
for i = 1 : numel(a2)
a2Children = get(a2(i),'Children');
copyobj(a2Children, a1(i));
end
close(f2)
save_figure('f3')
end
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!