Filter löschen
Filter löschen

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

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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by