I've plotted the graph from the attached image. I want to enlarge the graph area so that I can see the lines close to 1.
I read the doc and tried with ylim([0 2]) but it changed my Ytick values: I'm using
ay = gca;
ay.YRuler.TickLabelFormat = '% .2f';
set(gca, 'YTick',y)
I didn't want to see values above 1, I only want to see the line more easily.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 5월 19일

0 개 추천

yt = ay.YTick;
ylim([0.9 1])
ay.YTick = yt; %force the ticks to go back to what they were before

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

릴리스

R2017a

태그

질문:

2018년 5월 19일

답변:

2018년 5월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by