How can I move a plot to the left?

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Two y-axis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by