shifting axis on both ends so graph does not have points on extreme end
조회 수: 1 (최근 30일)
이전 댓글 표시
I have the following attached graph and I need to shift the axis so that I do not have my starting point on the y axis and the last point on the extream end.
댓글 수: 0
채택된 답변
Star Strider
2024년 5월 16일
imshow(imread('baseresistancemultiplot.jpg'))
One option is:
axis('padded')
That will put space between the elements of the plot and the axes —
x = [0 1];
y = [1 2];
figure
plot(x, y, '.-')
grid
figure
plot(x, y, '.-')
grid
axis('padded')
.
댓글 수: 2
추가 답변 (1개)
Adam Danz
2024년 5월 16일
In addition to axis padded which pads all axes limits, you could use ylim('padded') to only pad the y axis limits (same with xlim or zlim).
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!