Add a specific line or point in boxplots
Show older comments
Hi, i need help. Looked through a lot of community posts, but none helped.
I need to plot multiple boxes from which i know the lower and upper values. Futhermore within each box i need to plot a single value as point or straight line (showed in green). When i use boxplots it automatically calculates a mean value and plots it in red. I need to get rid of that and replace it with my desired green line (or as a point).

For example i saw this, where linestyle and color can be set. Can i also set the value of 'Median' ??
Thank you in advance!! :)
load carsmall;
boxplot(MPG)
h = findobj(gca,'tag','Median');
set(h,'linestyle','-.');
set(h,'Color',[0 0 0])
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
