From: Felix Frank on
I try to have two plots next to each other with a rather large font for the xlabel. Unfortunately, the figure doesn't completely show the xlabel and is also missing when I save them (File->save as not command window). When I change the position, ie make the window taller, it shows the label, but it looks bad.

My code is:
% first plot
fh3 = figure;
set(fh3,'position',[156 329 1085 455]);
%set(fh3,'position',[156 266 1085 518]); %here it shows the full xlabel
x = -10:0.1:10;
t = 0.1;
y1 = exp(-x.*t).*abs(sin(x));
y2 = exp(-x.*t).*abs(sin(x+1.5));

subplot(1,2,1)
semilogy(x,y1,'Color','r','Linewidth',2);hold on
semilogy(x,y2,'Color','b','Linewidth',2);hold off
xlabel('\fontsize{20}xlabel')
set(gca,'fontsize',20,'ticklength',[0.025 0.00])

% second plot
y3 = sqrt(exp(-x.*t).*abs(sin(x)));
y4 = sqrt(exp(-x.*t).*abs(sin(x+1.5)));

subplot(1,2,2)
semilogy(x,y3,'Color','r','Linewidth',2);hold on
semilogy(x,y4,'Color','b','Linewidth',2);hold off
xlabel('\fontsize{20}xlabel')
set(gca,'fontsize',20,'ticklength',[0.025 0.00])
From: Jan Simon on
Dear Felix,

do you have a reason to use 20 points as font size? With a smaller font I'd expect the plots to match in the figure.
You can define the subplot axes manually using the 'Position' property.

Kind regards, Jan
From: Felix Frank on
Dear Jan,

this is supposed to be a small figure in a publication. The fontsize has to be big in order to be able to read it.

Felix

"Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i39bvc$q29$1(a)fred.mathworks.com>...
> Dear Felix,
>
> do you have a reason to use 20 points as font size? With a smaller font I'd expect the plots to match in the figure.
> You can define the subplot axes manually using the 'Position' property.
>
> Kind regards, Jan
From: Jan Simon on
Dear Felix,

> this is supposed to be a small figure in a publication. The fontsize has to be big in order to be able to read it.

I suggest to export a EPS picture in the original size. The MathWorks has spend thousands of hours to optimize the readability of diagrams and balance the amount of free space around and the filled space inside the axes. It is worth to give it a try.

In older Microsoft-Word version embedded EPS looks awkward on the screen, but very nice when printed to paper of to a PDF. You cannot beat this with high resolution pixel graphics.

Good luck, Jan
From: Pekka Kumpulainen on
"Felix Frank" <felix.frank(a)imperial.ac.uk> wrote in message <i39cpk$luj$1(a)fred.mathworks.com>...

>
> this is supposed to be a small figure in a publication. The fontsize has to be big in order to be able to read it.
>
> Felix

Only if you resize the figure.
I'd suggest you use the fontsize you want in the publication (8 to 10), use the Figures PaperPosition property to define the final size of the figure and NOT resize it in the publication.