필터 지우기
필터 지우기

Change minimum y-limits on a plot?

조회 수: 28 (최근 30일)
cocopuffs
cocopuffs 2014년 8월 14일
댓글: cocopuffs 2014년 8월 14일
Hi guys.
I have a grpah that for some reason starts at .5 on the y axis instead of 0. I want to change the minimum limit on the y axis to 0. I have tried using ylim but for that I also need to input the max limit. However I ONLY want to change the minimum y-limit as the maximum limit is already correct.
Thank you in advance!

채택된 답변

Joakim Magnusson
Joakim Magnusson 2014년 8월 14일
편집: Joakim Magnusson 2014년 8월 14일
Maybe you are looking for this?
yLim = get(gca,'YLim');
set(gca,'YLim', [0 yLim(2)]);

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by