I would like to delete the black line in the boxes
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Emanuele Raffaele Pipoli
am 15 Mai 2023
Kommentiert: Cris LaPierre
am 15 Mai 2023
Hi everybody, I would like to delete the black line as I set 'PlotStyle' as 'compact' or equally 'BoxStyle' as 'filled'
5 Kommentare
Cris LaPierre
am 15 Mai 2023
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)')
Akzeptierte Antwort
the cyclist
am 15 Mai 2023
Bearbeitet: the cyclist
am 15 Mai 2023
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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!