Effacer les filtres
Effacer les filtres

Setting plot zoom mode?

12 vues (au cours des 30 derniers jours)
Jared
Jared le 15 Oct 2011
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?

Réponse acceptée

Wayne King
Wayne King le 15 Oct 2011
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 commentaire
Jan
Jan le 15 Oct 2011
Of for a specific axes:
setAxesZoomMotion(ZoomH, AxesH, 'horizontal')

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Visual Exploration dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by