Clear Filters
Clear Filters

How to create stacked bar plot where each stack is of equal height and filled partially to user desired value ?

2 views (last 30 days)
How to create stacked bar plot where each stack is of equal height and filled partially to user desired value ?

Accepted Answer

Matt J
Matt J on 23 Apr 2023
Edited: Matt J on 23 Apr 2023
height=1;
y=rand(4,1);
B=bar([y,height-y],'stacked'); axis padded
B(2).FaceColor='none';

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!