image thumbnail


version (2.77 KB) by Laurent S
Displays stacked box plots with labels.


Updated 21 May 2013

View License

Displays stacked box plots and optionally prints a label next to each box plot. The box plots show the first, second and third quartiles. The whiskers extend to the the smallest and largest data that are in range of 1.5x IQR of the first and third quartile, respectively.


boxplotstack( ...
{5+randn(100,1),2+randn(500,1);2+randn(500,1),5+randn(100,1)}, ...
{'Foo','Bar'}, ...
{'Some text','More text';0.7,0.4} );

Cite As

Laurent S (2021). boxplotstack (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!