White space at the ends of some plots and bars
조회 수: 40 (최근 30일)
이전 댓글 표시
An intermittant problem is that I give matlab a couple vectors to plot, where x is of known length and y matches. But it tacks on some extra white space to the right of the plot - blank.
This is not helpful when trying to line up plots in registration for comparisons, and I see no parameter anywhere to force it.
Any advice appreciated. Hope it is not a dumb question. I am not a matlab expert (yet).
댓글 수: 1
Fangjun Jiang
2011년 10월 28일
Only if you could clearly explain or illustrate what do you mean by "But it tacks on some extra white space to the right of the plot - blank."
채택된 답변
the cyclist
2011년 10월 28일
편집: the cyclist
2017년 9월 25일
In your case, it sounds like you want to set the limits of the x- and y-axis. You can do that like this:
>> set(gca,'XLim',[0 10],'YLim',[0 10])
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!