Plot the values between the range

1 visualización (últimos 30 días)
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan el 25 de Nov. de 2015
Comentada: Mike Garrity el 30 de Nov. de 2015
I need to plot the values between the range using the bar plot ?
for example
Bar A 10-15
Bar B 25-30
Bar C 45-50
How can i do this ?
Thanks a lot

Respuesta aceptada

Thorsten
Thorsten el 25 de Nov. de 2015
h = bar([10 25 45; 5 5 5]', 'stacked');
set(h(1), 'FaceColor', 'w', 'EdgeColor', 'w')
  2 comentarios
Gopalakrishnan venkatesan
Gopalakrishnan venkatesan el 30 de Nov. de 2015
Problem i face here is when i am using the above command I cannot able to complete the grid lines. How to overcome this??
Thanks a lot
Mike Garrity
Mike Garrity el 30 de Nov. de 2015
Instead of setting FaceColor and EdgeColor to white, try setting Visible to off.
set(h(1), 'Visible','off')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by