Hera i have a paired boxplot for a data a and b as shown in the image below. So i wanted to fill each pared boxs with diffrent color.
e.g the blue color is filled by blue and the red color should be filled by red. Any one with smart idea i appreaciate the suggestions
the code is here;
a=rand(10,8);b=rand(10,8);X1=[1,2,3,4,5,6,7,8];X2=[1.3 2.3 3.3 4.3 5.3 6.3 7.3 8.3];boxplot(a,'positions',X1,'labels',X1,'colors','b','widths',0.25)hold onboxplot(b,'positions',X2,'labels',X2,'colors','r','widths',0.25)set(gca,'xticklabel',{'#1','#2','#3','#4','#5','#6','#7','#8'})
Best Answer