フィルターのクリア

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])
  1 件のコメント
jithu krishna
jithu krishna 2017 年 9 月 25 日
Thanks, that was helpul.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by