Setting plot zoom mode?

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일

2 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Data Exploration에 대해 자세히 알아보기

태그

질문:

2011년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by