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

2 次查看(过去 30 天)
How to create stacked bar plot where each stack is of equal height and filled partially to user desired value ?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by