legend_reverse

Create legend in reverse order. Uses the same name-pair arguments as the default legend() function.

이 제출물을 팔로우합니다

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 (2026). legend_reverse (https://kr.mathworks.com/matlabcentral/fileexchange/79577-legend_reverse), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 받은 파일: Flip bar legend

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
3.0

-Fix function name.

2.0

-Edited function name and example.

1.0