![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178925/image.jpeg)
customising the boxplot with data points.
5 views (last 30 days)
Show older comments
CLARK KENDRICK GO
on 13 Feb 2018
Edited: John D'Errico
on 13 Feb 2018
so the default boxplot contains err, a box with a line signifying the mean, and the upper 25 percentile and lower 25 percentile. I wanted to input the 'data points' together with the boxplot, so I can see how they are distributed. Can i do this?
Thanks
0 Comments
Accepted Answer
John D'Errico
on 13 Feb 2018
Edited: John D'Errico
on 13 Feb 2018
Well, you could have just tried it. That is often the best approach. But you may just not know how to use the hold command.
X = randn(100,1);
boxplot(X)
hold on
plot(1,X,'o')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178925/image.jpeg)
Were it my choice, I might have used a histogram on the side instead. For example, split the window into subplots.
0 Comments
More Answers (0)
See Also
Categories
Find more on Histograms 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!