How can I move a plot to the left?

26 ビュー (過去 30 日間)
j_solar
j_solar 2013 年 1 月 16 日
コメント済み: Walter Roberson 2020 年 5 月 22 日
When doing plotyy the right axis label is outside the image and there is some space left on the left of the left axis. I would like to move the whole plot left so that both axis labels fit correctly. Is it possible with Matlab code?
ty

採用された回答

Thorsten
Thorsten 2013 年 1 月 16 日
編集済み: Thorsten 2013 年 1 月 16 日
pos = get(gca, 'Position');
xoffset = -0.1;
pos(1) = pos(1) + xoffset;
set(gca, 'Position', pos)
  2 件のコメント
Elena
Elena 2020 年 5 月 22 日
It it possible to make this to work also to move up an entire plot?
Thank you.
Walter Roberson
Walter Roberson 2020 年 5 月 22 日
add a positive value to pos(2)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by