Change stackedplot YLabel?

54 visualizaciones (últimos 30 días)
Denis Manolescu
Denis Manolescu el 6 de Mzo. de 2022
Comentada: Denis Manolescu el 7 de Mzo. de 2022
I have a stackedplot with a series of 10 charts and they all have a default YLabel 'Column #'.
It's there any way to change that default?
Thank you

Respuesta aceptada

Dave B
Dave B el 7 de Mzo. de 2022
Editada: Dave B el 7 de Mzo. de 2022
The DisplayLabels property gives you access to the y labels:
sp=stackedplot(rand(10,4));
set(sp, 'DisplayLabels',["Apples" "Oranges" "Pears" "Plums"])
% Or you could specify them in the call to stackedplot:
% stackedplot(rand(10,4), 'DisplayLabels', ["Apples" "Oranges" "Pears" "Plums"])

Más respuestas (0)

Categorías

Más información sobre Feature Detection and Extraction en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by