I would like to delete the black line in the boxes
4 次查看(过去 30 天)
显示 更早的评论
Hi everybody, I would like to delete the black line as I set 'PlotStyle' as 'compact' or equally 'BoxStyle' as 'filled'
5 个评论
Cris LaPierre
2023-5-15
I'm not able to reproduce. Could you share a workable example?
load carsmall
boxplot(MPG,Origin,'PlotStyle','compact','ColorGroup',Origin)
title('Miles per Gallon by Vehicle Origin')
xlabel('Country of Origin')
ylabel('Miles per Gallon (MPG)')
采纳的回答
the cyclist
2023-5-15
编辑:the cyclist
2023-5-15
Those are the whiskers, in the compact style. You can set their length to zero. (I also removed outliers, to show it more clearly.)
rng default
data = randn(100,3);
boxplot(data,'PlotStyle','compact','Whisker',0,'Symbol','')
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!