How to superimpose plots from 2 (.fig) files?
Show older comments
My objective is to superimpose 2 plots from 2 (.fig) files.
One of the (.fig) that 2 plots (say, two.fig). The .fig files came from scopeData. I figured I could live only with .fig. When I tried to superimpose it with the other (.fig) (say one.fig) with only one plot, MATLAB is using the bottom plot two.fig. How can I get the top plot from two.fig to superimpose with one.fig?
Pictures included. (I'm working with (.fig) files, jpegs are just to show what I have)
I tried: x = openfig('one.fig', 'reuse'); ax1 = gca; y = openfig('two.fig','reuse'); ax2 = gca;
h3 = figure;
s1 = subplot(1,1,1);
fig1 = get(ax1, 'children'); fig2 = get(ax2, 'children');
copyobj(fig1,s1); hold on copyobj(fig2,s1); hold off
Accepted Answer
More Answers (0)
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!