How can I move a plot to the left?

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

 Respuesta aceptada

Thorsten
Thorsten el 16 de En. de 2013
Editada: Thorsten el 16 de En. de 2013
pos = get(gca, 'Position');
xoffset = -0.1;
pos(1) = pos(1) + xoffset;
set(gca, 'Position', pos)

2 comentarios

Elena
Elena el 22 de Mayo de 2020
It it possible to make this to work also to move up an entire plot?
Thank you.
Walter Roberson
Walter Roberson el 22 de Mayo de 2020
add a positive value to pos(2)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 16 de En. de 2013

Comentada:

el 22 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by