Is it not possible to set axis globally?

3 ビュー (過去 30 日間)
Mr M.
Mr M. 2015 年 7 月 7 日
コメント済み: VIVEK RUHELA 2019 年 2 月 26 日
I have to set axis for each subplot? Is it not possible (for example) to set axis off globally?

採用された回答

bio lim
bio lim 2015 年 7 月 7 日
編集済み: bio lim 2015 年 7 月 7 日
Do you mean by setting the setting axis globally, the figure will have fixed properties for all functions?
If so:
set(0, 'defaultaxesxlim', [range]);
set(0, 'defaultaxesylim', [range]);
If you mean to set axis for all the subplots, you can use the function linkaxes()
h1 = subplot(1,2,1);
hold on
plot('')
h2 = subplot(1,2,2);
hold on
plot('')
linkaxes([h1, h2], 'x')
Something like this.
  1 件のコメント
VIVEK RUHELA
VIVEK RUHELA 2019 年 2 月 26 日
I hav4 4 axis in the same figure and I want to have global setting to suppress all the xticks and yticks (except for the graph in the lowest axes). How to do that. Thanks.

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

その他の回答 (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