Is it possible to set gca for all subplots?

조회 수: 20 (최근 30일)
Mr M.
Mr M. 2015년 4월 23일
답변: VBBV 2023년 7월 25일
For example I would like to set(gca,'YTick',[]); but for all subplots

답변 (1개)

VBBV
VBBV 2023년 7월 25일
yes, its possible to set the YTick to [ ] for all subplots you want by using axes handles for individual subplots as shown below
subplot(311)
plot(1:10);grid
ax1 = gca;
subplot(312)
plot(rand(1,4)); grid
ax2 = gca;
subplot(313)
plot(rand(1,4));grid
ax3 = gca;
% single call for all axes handles
set([ax1 ax2 ax3],'YTick',[])

카테고리

Help CenterFile Exchange에서 Axes Appearance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by