필터 지우기
필터 지우기

Cannot change order of plots in GUI

조회 수: 3 (최근 30일)
Ali
Ali 2018년 9월 22일
답변: Joel Meyer Espinoza 2018년 9월 24일
In GUI, I am plotting two vectors
h1=plot(handles.axes1,1:time, x, '.g' ); hold on
h2=plot(handles.axes1,1:time, y, '-r.');
But the first one is always covering the second. Even if I change the order above. And the command uistack(h2,'top') did not help. It looks like it does not work if the plot is within a GUI. Any idea? Using Matlab 2016b.
  댓글 수: 1
Jan
Jan 2018년 9월 24일
I do not believe that your observation is correct. Please post a piece of code, which reproduces the problem.

댓글을 달려면 로그인하십시오.

답변 (1개)

Joel Meyer Espinoza
Joel Meyer Espinoza 2018년 9월 24일
it would be better if you upload the entire code
you can turn the visibility of fo an object
maybe this can help
set(h1,'visible','off')
also you could use different axes and use this
set(handles.axes1,'visible','off')
and plot the new plot in a new axis

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by