Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
How to create stacked bar plot where each stack is of equal height and filled partially to user desired value ?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by