How to get and set ylabel position in normalized units?

6 次查看(过去 30 天)
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.

回答(1 个)

alice
alice 2017-7-5
编辑:alice 2017-7-5
You can set the units to normalized first:
...
set(ylabh,'Units','normalized');
set(ylabh,'position',get(ylabh,'position') - [shift 0 0]);

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by