labels of stacked plot

57 visualizaciones (últimos 30 días)
Deepa Maheshvare
Deepa Maheshvare el 11 de Nov. de 2020
Comentada: Adam Danz el 20 de Nov. de 2020
Hi All,
I've been going through the examples available here https://in.mathworks.com/help/matlab/ref/stackedplot.html to generate a common x axis for plots
newYlabels = {'RH (%)',['T (' degreeSymbol 'F)'],'P (in Hg)'};
stackedplot(outdoors,'Title','Weather Data','DisplayLabels',newYlabels)
The ylabels are aligned horizontally. I'd like to know how to align vertically. Also , how can we define x label?
  3 comentarios
Deepa Maheshvare
Deepa Maheshvare el 11 de Nov. de 2020
Editada: Deepa Maheshvare el 11 de Nov. de 2020
I tried
s.ytickangle(90) ?
This didn't work
Unrecognized method, property, or field 'ytickangle' for class 'matlab.graphics.chart.StackedLineChart'.
VBBV
VBBV el 12 de Nov. de 2020
You can add xlabel just like plot function.
But it seems stackedplot does not allow ytickangle,

Iniciar sesión para comentar.

Respuesta aceptada

Adam Danz
Adam Danz el 19 de Nov. de 2020
>The ylabels are aligned horizontally. I'd like to know how to align vertically.
> Also , how can we define x label?
See the XLabel property.
  2 comentarios
Deepa Maheshvare
Deepa Maheshvare el 20 de Nov. de 2020
Thanks. May I know if
set([S.Axes.YLabel],'Rotation',90,'HorizontalAlignment', 'Center', 'VerticalAlignment', 'Bottom')
is possible in version 2019b?
Adam Danz
Adam Danz el 20 de Nov. de 2020
Just tested it in 19b; it worked.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Formatting and Annotation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by