フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

2 ビュー (過去 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