Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
How to create stacked bar plot where each stack is of equal height and filled partially to user desired value ?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by