필터 지우기
필터 지우기

any one known how to take the y axis limit?

조회 수: 3 (최근 30일)
prajith samraj
prajith samraj 2022년 7월 25일
댓글: Walter Roberson 2022년 7월 27일
how reduce y axis limit ?
  댓글 수: 2
dleal
dleal 2022년 7월 25일
if ax is your axis:
ax.XLim = [lowerLimX upperLimX];
ax.YLim = [lowerLimY upperLimY];
dpb
dpb 2022년 7월 25일
From the values on the tick labels, it would appear you may be approaching the limits of precision -- what are the actual limits on y -- are those real values, not in the fractional M value?
You can try scaling Y by 1E9 or 1E12 and then maybe have some numbers that will be easier to deal with.

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

답변 (1개)

Walter Roberson
Walter Roberson 2022년 7월 25일
unless your y axes labels have no connection to the plot, then your y values are in the range 0.1-1e-13 to 0.1+1e-13 . What axes limits and tick values do you need?
  댓글 수: 3
prajith samraj
prajith samraj 2022년 7월 26일
how to plot this values 0.1-1e-13 to 0.1+1e-13 in y axis?
Walter Roberson
Walter Roberson 2022년 7월 27일
You are already plotting the full range of values on the y axes. But you can force it to show more digits.
y = randn(1,100)/1e15 + 0.1;
figure
plot(y)
figure
plot(y)
ytickformat('%.14f')
figure
plot(y)
ytickformat('%.15f')

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

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by