correct tick label

版本 1.0.0.0 (412 字节) 作者: benharper1977
set x tick label in a desired format and maintain it when zooming, panning or using data cursor
1.4K 次下载
更新时间 2008/12/13

无许可证

called after plot command, set x tick label in a desired format (e.g. integer) and maintain it when zooming, panning or using data cursor to retrieve point information

i made it only for x tick label.. if you want it for y label i guess you just have to copy and paste the lines regarding the SET command for xticklabel and xtick and change it with yticklabel and ytick.

if you need different data format (e.g. fixed precision instead of integer) just change the %d with your desired format (please refer to the sprintf command help in matlab).

hope this will help you!

引用格式

benharper1977 (2024). correct tick label (https://www.mathworks.com/matlabcentral/fileexchange/22433-correct-tick-label), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

参考作品: zoomfixticks

Community Treasure Hunt

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

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