xtickinterval, ytickinterval

版本 1.0.0.0 (5.8 KB) 作者: John Barber
XTICKINTERVAL forces tick spacing to a specified interval regardless of axis limits.
644.0 次下载
更新时间 2011/3/8

查看许可证

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.

引用格式

John Barber (2024). xtickinterval, ytickinterval (https://www.mathworks.com/matlabcentral/fileexchange/30674-xtickinterval-ytickinterval), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0