Why am I unable to properly combine these figures?

40 views Asked by At

I have a long list of figures that plot the same two lines of data, but each figure only contains a small portion of the domain. I want to combine them all into a single graph. I've done this before with similar figures with no issues, but I've been unable to properly combine these. Here is an example of two of the individual figures

This is an example of a method that seems to work for re-plotting similar figures, here I attempt to plot the data from on of the two figures I attached an image of onto a new figure:

figA = openfig('figuredirectory');
axA = gca;
fig = figure;
s1 = subplot(1,1,1);
figA = get(axA, 'children');
copyobj(figA,s1);`

Instead of producing the same figure however, it produces this: Image of the produced figure

Another example that produces an incorrect result is:

figA = openfig('figuredirectory');
axA = gca;
fig = figure;
copyobj(axA,fig);

Where I'm left with an empty figure. Image of the empty figure

I'm fairly inexperienced with MatLab, so it's very likely that I'm missing something obvious. I've attached dropbox links to two of the figures if it's of any help. Fig1 Fig2

0

There are 0 answers