xlabel in box plot

1 visualización (últimos 30 días)
Paulo Sousa
Paulo Sousa el 12 de Jul. de 2015
Comentada: dpb el 30 de Abr. de 2020
Hello all, I need help concerning the xlabel in my box plot. I am using this (part of) code:
boxplot(AB, 'Labels',{'1','2','3','4','5','6','7','8','9','10','11','12'})
xlabel('X Y Z')
So, if possible, I need X under 1 2 3 4, Y under 5 6 7 8 and Z under 9 10 11 12 with X, Y and Z entered. Could anyone please help me with this subject?
Greetings, Paulo Sousa

Respuestas (1)

dpb
dpb el 12 de Jul. de 2015
Like
text([2.5:4:12].',-0.1*ones(3,1),['X';'Y';'Z'],'horizontal','center')
maybe?
  4 comentarios
Matlaber
Matlaber el 30 de Abr. de 2020
can you make the text lable in italic?
dpb
dpb el 30 de Abr. de 2020
Look at the properties of the object -- 'FontStyle'

Iniciar sesión para comentar.

Categorías

Más información sobre Annotations 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