Can someone help me superimpose these plots?

1 次查看(过去 30 天)
So... I have these two figures, each with 2 rows of 6 subplots.
How can I alter my script so that instead of plotting the subplots in two separate figures, the corresponding subplots superimpose on each other?
Here's my script. Don't worry about the details. Row A data and Row B data refer to 2 rows on a testing plate, not rows of subplots in a figure.
%Row A data
rowA_mcd = permute(plate_multicomponent_data(1,allcols(1,allcols(1,:)~=0),:),[3 2 1]);
rowA_dRn = permute(plate_delta_Rns(1,allcols(1,allcols(1,:)~=0),:),[3 2 1]);
rowA_cols = allcols(1,allcols(1,:)~=0);
for i = 1:maxcols(1);
set(gcf,'name','Row A','numbertitle','off');
y1 = rowA_mcd(:,i)';
y1max = ceil(max(max(data1.multicomponent_data))/100000)*100000;
y2 = rowA_dRn(:,i)';
subplot(2,maxcols(1),i),plot(cycles,y1)
title(['Multicomponent Plot (Well ',num2str(rowA_cols(i)),')']);
xlabel('Cycle');
ylabel('Fluorescence');
ylim([0 y1max]);
grid on;
subplot(2,maxcols(1),i+maxcols(1)),semilogy(cycles,y2);
line(cycles,0.2,'Color','r'); %This is the reference line at delta Rn
%= 0.2
title(['Amplification Plot (Well ',num2str(rowA_cols(i)),')']);
xlabel('Cycle');
ylabel('Delta Rn');
ylim([0.001 10]);
xlim([0 40]);
end
%Row B data
rowB_mcd = permute(plate_multicomponent_data(2,allcols(2,allcols(2,:)~=0),:),[3 2 1]);
rowB_dRn = permute(plate_delta_Rns(2,allcols(2,allcols(2,:)~=0),:),[3 2 1]);
rowB_cols = allcols(2,allcols(2,:)~=0);
figure;
for i = 1:maxcols(2);
set(gcf,'name','Row B','numbertitle','off');
y1 = rowB_mcd(:,i)';
y1max = ceil(max(max(data1.multicomponent_data))/100000)*100000;
y2 = rowB_dRn(:,i)';
subplot(2,maxcols(2),i),plot(cycles,y1);
title(['Multicomponent Plot (Well ',num2str(rowB_cols(i)),')']);
xlabel('Cycle');
ylabel('Fluorescence');
ylim([0 y1max]);
grid on;
subplot(2,maxcols(2),i+maxcols(2)),semilogy(cycles,y2);
line(cycles,0.2,'Color','r'); %This is the reference line at delta Rn
%= 0.2
title(['Amplification Plot (Well ',num2str(rowB_cols(i)),')']);
xlabel('Cycle');
ylabel('Delta Rn');
ylim([0.001 10]);
xlim([0 40]);
end
  1 个评论
Jan
Jan 2012-5-22
Posting a large script, which we cannot run due to missing functions and variables is *not* useful, but only confusing. I still do not understand, what you want to achieve. Even posting three questions for the same topic is not helpful, but annoying.

请先登录,再进行评论。

回答(1 个)

Vijay
Vijay 2012-5-22
try using
hold on
hold off

Community Treasure Hunt

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

Start Hunting!

Translated by