Is it not possible to set axis globally?

조회 수: 1 (최근 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 CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by