clc;
clear;
close all
A=[0.03 0.0375 0.04 0.05 0.54 0.42]';
B=[0.04 0.03 0.3 0.04 0.08 0.09]';
C=[0.8 0.8 0.9 0.67 0.74 0.44]';
b=bar([A,B,C],'stacked');
ch = get(b,'children');
set(gcf,'unit','centimeters','position',[6 6 25 15])
legend('类型1','类型2','类型3','Location','Northwest');
set(gca,'XTickLabel',{'地区1','地区2','地区3','地区4','地区5','地区6'})
xlabel('地区');
ylabel('值');
title('图名')
set(gca,'fontsize',10);
grid on