필터 지우기
필터 지우기

How to get and set ylabel position in normalized units?

조회 수: 8 (최근 30일)
Mr M.
Mr M. 2017년 7월 5일
댓글: Giuseppe Naselli 2018년 2월 6일
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]);
  댓글 수: 1
Giuseppe Naselli
Giuseppe Naselli 2018년 2월 6일
the solution you proposed gives a error (below)
Error using ylabel (line 16)
Not enough input arguments.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by