How to get and set ylabel position in normalized units?

5 visualizaciones (últimos 30 días)
Mr M.
Mr M. el 5 de Jul. de 2017
Comentada: Giuseppe Naselli el 6 de Feb. de 2018
I would like to shift (increase the gap) for ylabel. The standatd method is the following: ylabh = get(gca,'ylabel'); set(ylabh,'position',get(ylabh,'position') - [shift 0 0]);
But how to get and set this in normalized coordinates? I cannot figure out.

Respuestas (1)

alice
alice el 5 de Jul. de 2017
Editada: alice el 5 de Jul. de 2017
You can set the units to normalized first:
...
set(ylabh,'Units','normalized');
set(ylabh,'position',get(ylabh,'position') - [shift 0 0]);
  1 comentario
Giuseppe Naselli
Giuseppe Naselli el 6 de Feb. de 2018
the solution you proposed gives a error (below)
Error using ylabel (line 16)
Not enough input arguments.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by