correct tick label
Sin licencia
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!
Citar como
benharper1977 (2024). correct tick label (https://www.mathworks.com/matlabcentral/fileexchange/22433-correct-tick-label), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Data Import and Analysis > Visual Exploration >
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
Etiquetas
Agradecimientos
Inspirado por: zoomfixticks
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |