MrcJkb/tldeccheck

버전 2.1.0.0 (4.42 KB) 작성자: Marc Jakobi
For adjusting the amount of decimals in TickLabels
다운로드 수: 32
업데이트 날짜: 2022/10/15

TLDECCHECK: Checks the TickLabels of all axes objects of the current figure
and adjusts the amount of decimals so that they are uniform.
Syntax: TLDECCHECK - adjusts the decimals
automatically.
TLDECCHECK('OptionName', OptionValue)
OptionName - OptionValue pairs:

- 'axes' - Axes handle, e.g. TLDECCHECK('axes', gca)
(default: array containing all axes objects in gcf)
- 'xNumDecimals' - Specifies the number of decimals the XTickLabels
should be set to (numeric).
- 'yNumDecimals' - Specifies the number of decimals the YTickLabels
should be set to (numeric).
- 'cNumDecimals' - Specifies the number of decimals the colorbar
TickLabels should be set to (numeric).
- 'xMode' - 'auto' (default) or 'manual' - Set this to
'manual' for reduction of the XTickLabel decimals through
manual input. Doing so overrides the
'numDecimals' option.
- 'yMode' - 'auto' (default) or 'manual' - Set this to
'manual' for reduction of the YTickLabel decimals through
manual input. Doing so overrides the
'numDecimals' option.
- 'cMode' - 'auto' (default) or 'manual' - Set this to
'manual' for reduction of the colorbar TickLabel decimals through
manual input. Doing so overrides the
'numDecimals' option.
- 'xLabelUnits' - Specify a custom unit (default: '%') that the XTickLabels
are checked for (string).
- 'yLabelUnits' - Specify a custom unit (default: '%') that the
YTickLabels are checked for (string).
- 'cLabelUnits' - Specify a custom unit (default: '%') that the
colorbar TickLabels are checked for (string).

Old syntax: (still works)
TLDECCHECK - adjusts the decimals
automatically.
TLDECCHECK(nd) - adjusts the decimals and reduces the
amount of decimals to nd
TLDECCHECK('manual') - reduction of the decimals through
manual input

Input arguments (old syntax):

- nd: Amount of decimals for TickLabels (optional)
-> Integer, for use on all axes objects
-> String, 'manual', to set number of decimals for each axes
object separately

Hint:

- If using the 'manual' option, invisible axes objects may be found.
Just input a random number if this happens.

Author: Marc Jakobi - 22.01.2016

인용 양식

Marc Jakobi (2024). MrcJkb/tldeccheck (https://github.com/mrcjkb/tldeccheck), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2017a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Colorbar에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
2.1.0.0

Added screenshot

2.0.0.0

- Bugfix: TickLabels with units messed up function
- Compressed code
- Added option to define tick label units
- Added ability to run on single axes
- Options can now be set for individual TickLabels
- Syntax overhaul (compatible with old syntax)

1.0.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.