Azzera filtri
Azzera filtri

How can I move a plot to the left?

18 visualizzazioni (ultimi 30 giorni)
j_solar
j_solar il 16 Gen 2013
Commentato: Walter Roberson il 22 Mag 2020
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

Risposta accettata

Thorsten
Thorsten il 16 Gen 2013
Modificato: Thorsten il 16 Gen 2013
pos = get(gca, 'Position');
xoffset = -0.1;
pos(1) = pos(1) + xoffset;
set(gca, 'Position', pos)
  2 Commenti
Elena
Elena il 22 Mag 2020
It it possible to make this to work also to move up an entire plot?
Thank you.
Walter Roberson
Walter Roberson il 22 Mag 2020
add a positive value to pos(2)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Two y-axis in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by