Borrar filtros
Borrar filtros

Size of figure inner box

4 visualizaciones (últimos 30 días)
Guy Eyal
Guy Eyal el 11 de Ag. de 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

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 11 de Ag. de 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)

Más respuestas (0)

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by