필터 지우기
필터 지우기

Set length of plot axis

조회 수: 1 (최근 30일)
Alex Vasin
Alex Vasin 2022년 5월 24일
답변: Voss 2022년 5월 24일
Hi. I plotted a curve which is shaped like a parabola. The peak of paraloba (y=2.5) touches the top border of the box (actually looks like it passes through the border a little and looks bad, imo). How do I increase the height of the top border so there is some white space between the curve and the top border? I tried Google already. Thanks

채택된 답변

Voss
Voss 2022년 5월 24일
You can use axis padded
x = -1:0.1:1;
y = 2.5-x.^2;
plot(x,y)
axis padded
Or set the y-limits:
x = -1:0.1:1;
y = 2.5-x.^2;
plot(x,y)
ylim([1.5 2.55])

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by