xtickinterval, ytickinterval

XTICKINTERVAL forces tick spacing to a specified interval regardless of axis limits.
644 téléchargements
Mise à jour 8 mars 2011

Afficher la licence

XTICKINTERVAL and YTICKINTERVAL set the tick spacing of the selected axis to a specified interval. If the axis limits change, either at the user's direction or due to the addition or deletion of plot objects, the ticks are automatically recalculated to fill the new limits, maintaining the specified interval.

By default, the ticks will be placed at integer multiples of the chosen interval. If an optional anchor point is given, the ticks will pass through that anchor point while maintaining the desired interval.

Both the interval and anchor point can be changed by calling XTICKINTERVAL with new values. Additionally, calling XTICKINTERVAL('off') will remove the listener function and restore the axis' tick and ticklabel properties to their original state.

Citation pour cette source

John Barber (2026). xtickinterval, ytickinterval (https://fr.mathworks.com/matlabcentral/fileexchange/30674-xtickinterval-ytickinterval), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2010a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Grid Lines, Tick Values, and Labels dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.0.0.0