フィルターのクリア

Re scaling the axis of a figure

1 回表示 (過去 30 日間)
MINA
MINA 2016 年 5 月 16 日
コメント済み: MINA 2016 年 5 月 16 日
Hello,
I have two subplots which need to have the same X scale but when I plot them they are different. I have attached my figure. Could someone please tell me how can I expand the x axis of the top one! Thanks

採用された回答

Jan
Jan 2016 年 5 月 16 日
編集済み: Jan 2016 年 5 月 16 日
The problem is caused by automatic placement of the color bar. Set the location manually to avoid a rescaling:
subplot(2,1,1);
plot(rand(1,10));
colorbar('Position', [0.93, 0.584, 0.015, 0.341]);
subplot(2,1,2);
plot(rand(1,10));
  1 件のコメント
MINA
MINA 2016 年 5 月 16 日
Thanks. It worked now.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by