Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

superimpose two or more plots

조회 수: 1 (최근 30일)
Vincent I
Vincent I 2012년 7월 13일
Hi, i am able to impose two plots at the moment using the code bellow however when I remove the axis for the second plot the second plot line matches the axes of the first plot. Is there a way to keep the second h=plot(hover,x,y) the way it is onto the first plot after removing the axes?
i've tried hold on, axis([Pmin Pmax -inf inf]) but nothing worked. any ideas? thank you
plot(handles.Axes1,SomeX,SomeY)
h_ax(1) = axes('parent',hObject,...
'position',[xpos+.009, cpos(2), cpos(3) *.00066, cpos(4)],...
'Tag','Top', 'NextPlot', 'add');
hplt = plot(h_ax,x,y);
hover = axes('parent',hObject,...
'position',[cpos(1), cpos(2) cpos(3) cpos(4)],'Layer','top',...
'box','off','selected','off','visible','off','Xgrid','off',...
'Ygrid','off');
h=plot(hover,x,y);
set(h,'Color',ycolor);
axis(hover,'off','tight')

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by