barlabel

버전 1.0.2 (59 KB) 작성자: Jackson Burns
Writes the values of bars in bar graphs, with options to rotate text, change how text is displayed, and ignore bars with a value of zero.
다운로드 수: 36
업데이트 날짜: 2021/1/9

Adds the value of the bar on top of the bar for the active figure, ignoring
bars with a value of zero. Automatically pulls bar height data from the
figure. Accepts up to three variable arguments in any order:
rotation is the angle of the text (default zero)
textoption is the formatspec string (default '%.0f')
ignorezero is a logical indicating if bars with a value of zero are
labeled (default true)

Example usage:
bar([2 6 7])
h = barlabel
h =
Figure (1) with properties:
...

bar([3 98 65])
barlabel(false,45);
Labels all bars (including zeros) and rotates text 45 degrees

인용 양식

Jackson Burns (2024). barlabel (https://github.com/JacksonBurns/MATLAB_barlabel), GitHub. 검색됨 .

This function abstracted from this answer on MATLAB Answers: https://www.mathworks.com/matlabcentral/answers/351883-value-on-top-of-grouped-bar-graph#answer_277165

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

Community Treasure Hunt

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

Start Hunting!

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

버전 게시됨 릴리스 정보
1.0.2

Fixed title unintentionally changed in last version

1.0.1

Added link to GitHub repository.

1.0.0

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