フィルターのクリア

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 Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by