legend_reverse

버전 3.0 (1.25 KB) 작성자: Moses
Create legend in reverse order. Uses the same name-pair arguments as the default legend() function.

다운로드 수: 28

업데이트 날짜: 2020/8/27

라이선스 보기

Create legend in reverse order. Uses the same name-pair arguments as the default legend() function.
-Line plots
-Stacked bar graphs

Example 1:
x = 1:3;
y = [2 2 3; 2 5 6; 2 8 9; 2 11 12];
plot(x, y, 'LineWidth', 2)
legend_reverse('blue', 'red', 'orange', 'purple', 'Location', 'northwest');

Example 2:
y = [2 2 3; 2 5 6; 2 8 9; 2 11 12];
bar(y,'stacked');
legend_reverse('blue', 'red', 'orange', 'Location', 'northwest');

인용 양식

Moses (2022). legend_reverse (https://www.mathworks.com/matlabcentral/fileexchange/79577-legend_reverse), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
도움

받음: Flip bar legend

Community Treasure Hunt

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

Start Hunting!