필터 지우기
필터 지우기

Setting plot zoom mode?

조회 수: 12 (최근 30일)
Jared
Jared 2011년 10월 15일
If you right click on a plot and go to zoom mode, it is defaulted to unconstrained zoom, with horizontal and vertical as choices. Is there any way to change this default?

채택된 답변

Wayne King
Wayne King 2011년 10월 15일
You can set the behavior through the zoom command. See the help. For example, to zoom just in the horizontal direction.
plot(randn(100,1));
h = zoom;
set(h,'Motion','horizontal','Enable','on');
  댓글 수: 1
Jan
Jan 2011년 10월 15일
Of for a specific axes:
setAxesZoomMotion(ZoomH, AxesH, 'horizontal')

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by