필터 지우기
필터 지우기

White space at the ends of some plots and bars

조회 수: 40 (최근 30일)
Steve D
Steve D 2011년 10월 28일
편집: the cyclist 2017년 9월 25일
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
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
the cyclist 2011년 10월 28일
편집: the cyclist 2017년 9월 25일
You can do this using handle graphics.
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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by