Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I want to print bar graphs of different color in same graph and with less width.

조회 수: 1 (최근 30일)
Bibhu Prasad  Das
Bibhu Prasad Das 2017년 4월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
clc; clear all; x = 0.5:0.125000:1; y = [0.5584 0.6661 0.7780 0.8000 0.8050]; figure; p1=bar(x,y,'stacked') hold on; set(p1,'FaceColor','red'); set(gca,'XTickLabel',{'A','B','C','D','E'}); ylabel('power') % y-axis label xlabel('method')

답변 (1개)

Xiaolei Du
Xiaolei Du 2017년 5월 1일
clc; clear all; x = 0.5:0.125000:1; y = [0.5584 0.6661 0.7780 0.8000 0.8050]; y = [y;zeros(1,length(x))]; bar(y,0.2);xlim([0 2]); set(gca,'XTickLabel',{'A B C D E',''}); ylabel('power') xlabel('method')

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by