Matlab: change position of ylabel
276 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yoni Verhaegen -WE-1718-
el 15 de Mayo de 2020
Comentada: Walter Roberson
el 8 de Oct. de 2022
I was wondering if it is possible to change the position of the ylabel. I would like to move it down (as suggested on the attached figure) to match it better with the yticks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/293103/image.png)
0 comentarios
Respuestas (1)
Ameer Hamza
el 15 de Mayo de 2020
Editada: Ameer Hamza
el 15 de Mayo de 2020
If you have the handle of ylabel, then you can modify its position using the 'position' property. For example
label_h = ylabel('myLabel');
label_h.Position(1) = 2040; % change horizontal position of ylabel
label_h.Position(2) = 0; % change vertical position of ylabel
Experiment with these values until you get the required location.
2 comentarios
Walter Roberson
el 8 de Oct. de 2022
Recent versions of MATLAB automatically rotate the angle for clarity.
Ver también
Categorías
Más información sobre Axis Labels 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!