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?

 Respuesta aceptada

Wayne King
Wayne King el 15 de Oct. de 2011

2 votos

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 comentario

Jan
Jan el 15 de Oct. de 2011
Of for a specific axes:
setAxesZoomMotion(ZoomH, AxesH, 'horizontal')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Exploration en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Oct. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by