Bar graph with nested bars
Updated 5 Feb 2017

View License

nestedBar mimics the behavior of the bar function used with a 2D array. nestedBar groups the bars produced by the elements in each row and adds bars at the back that represent the total of each group.
See demo in the zip file.

Feel free to contact me for any question or enhancement.

Cite As

Jerome Briot (2024). nestedBar (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Bar Plots in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes