change color of outlier limit in box plots
50 views (last 30 days)
For some applications, I'd like to hide the display of outliers in a boxplot.
I managed to hide the outliers using the following options, but still struggling not to display the dashed lines.
Here is a brief discription of how I do it and the outputs so far. Any help would be highly appreciated!
boxplot(data(i),xVariables,'DataLim', [lowerLim, upperLim],'ExtremeMode','clip','Whisker',1.5, 'symbol','')
Akira Agata on 4 Jan 2020
How about the following solution?
% Sample data
x = randn(1000,4);
% Create boxplot without outlier markers
% Find the target lines and set their 'LineStyle' to 'none'
h = findobj('-regexp','Tag','(Lower|Upper) (Whisker|Adjacent Value)');