How can I make a bar graph using only max/min values with std dev line on both ends?

14 visualizaciones (últimos 30 días)
It would be similar to this picture, except without the red line through each bar. I just have the max value and min value of each bar. I also have the upper and lower standard deviation.

Respuestas (1)

Turlough Hughes
Turlough Hughes el 6 de Feb. de 2022
Editada: Turlough Hughes el 6 de Feb. de 2022
x = rand(10,3);
boxplot(x);
Normally (at least for most other plot functions) you could do this sort of thing with a name-value pair argument or by getting the handle for example with h = boxplot(x) and then modifying the properties there. However, I didn't see any options to remove or hide the red line with those approaches. So I suggest using findobj as follows:
figure(), boxplot(x)
h = findobj(gca,'Tag','Median');
delete(h)

Categorías

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

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by