Azzera filtri
Azzera filtri

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

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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by