decreasing gap between horizontal boxplots

3 Ansichten (letzte 30 Tage)
OB
OB am 21 Okt. 2019
Bearbeitet: OB am 21 Okt. 2019
Dear All,
I have 5 boxplots that are aligned horizontally using 'orientation' argument. So, y axis includes the names of each boxplot.
I am trying to decrease the gap between horizontal boxplots. I failed to do so. Any help or suggestion is so much appreciated.
I tried decreasing the width of the boxplots using 'widths', I also tried using the 'positions' argument. I realized that they act reversely, meaning that when I decrease the 'widths' the gap between the plots increase. I also used 'positions' argument, by first specifying a vector named X5. CE50 is a matrix which has 5 coloumns of data, so that is why I have 5 boxplots.
X5=[0 0.2 0.4 0.6 0.8]
figure
boxplot(CE50,'Notch','on','Labels',{'box1','box2','box3','box4','box5'},'orientation','horizontal','Colors','k','OutlierSize',2,'Symbol' , 'o', 'positions', X5)
PS. I donot want the type called 'compact', just donot like its appearance. So, I want to do what I want keeping the type as 'traditional'.

Antworten (0)

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by