Cannot set axes limits

조회 수: 2 (최근 30일)
Mikhail
Mikhail 2014년 9월 17일
댓글: Mikhail 2014년 9월 17일
Hi, I am working with GUI interface. I want to set ,y own xlimits and ylimits. But I cannot do it:
figure('name','MomentFinder')
axes('OuterPosition',[0,0.2,1,0.8],'XLim',[-2 50],'YLim',[-2 35],'XLimMode','manual', 'YLimMode','manual');
plot(gca,file,vel1,'-',file,vel2,'-');
Matlab plot's vel1(file) in it's own limits. And I want the limits to be static. What is wrong?
Thanks

채택된 답변

José-Luis
José-Luis 2014년 9월 17일
Set the limits after you issue the plot() command.
  댓글 수: 3
Image Analyst
Image Analyst 2014년 9월 17일
Perhaps using "hold on" in between axes() and plot() would do it, but I prefer doing what Jose-Luis said.
Mikhail
Mikhail 2014년 9월 17일
Thanks

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by