Size of figure inner box

7 visualizzazioni (ultimi 30 giorni)
Guy Eyal
Guy Eyal il 11 Ago 2013
Hi all I have two figures which I want to have the same figure size To set the same figure size it's easy using set(gcf,'position')
my problem is that in one of the figures ylabel has two lines thus it decrease the size of the inner box of the figure. how can i set the tw0 figures to have the same inner box size?
P.S. Is it possible to set the location of ylabel corresponding to the axis?
Thank! Guy

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 11 Ago 2013
Example
close all
y1=sin(1:100),
y2=cos(1:100)
plot(y1)
ax1=gca
figure
plot(y2)
ax2=gca
pos=get(ax1,'position')
set(ax2,'position',pos)

Più risposte (0)

Categorie

Scopri di più su Graphics Object Programming 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