Printing Matlab Figures
- From: "Neel" <nilanjan@xxxxxxxxx>
- Date: 17 Jul 2006 08:02:06 -0700
Hi,
I am having an interesting problem. I have a matlab figures of
custom-made size (using set(gcf,'Position',[......] command), where I
have 6 subplots. They look fine on screen, but after printing the
figure as jpeg using "print -djpeg -r300 output" command, text size of
the individual figure titles are getting changed. Also the distance
between the figures get changed. I am wondering how to print the figure
as it appears on my screen. My computer resolution is 1280x1024. The
code I am using is attached below. Can anybody tell me how to print the
matlab figure exactly as it appears on screen?
thanks
Neel
% code
image_1 = rand(320,240);
image_2 = image_1;
image_3 = image_1;
image_4 = image_1;
image_5 = image_1;
image_6 = image_1;
fighandle = figure; subplot(2,3,1), imagesc(image_1);
set(gcf,'Position',[25 100 1200 800]);
axis equal; axis tight; drawnow;
title('Original Hand Image');
figure(fighandle); subplot(2,3,2), imagesc(image_2);
axis equal; axis tight; colormap(gray); drawnow;
title('Grayscale Hand Image');
figure(fighandle); subplot(2,3,3), imagesc(image_3);
axis equal; axis tight; colormap(gray); drawnow;
title('Grayscale and Normalized Hand Image');
figure(fighandle); subplot(2,3,4), imagesc(image_4);
axis equal; axis tight; drawnow; colormap(gray);
title('Binary Hand Image');
figure(fighandle); subplot(2,3,5), imagesc(image_5);
axis equal; axis tight; drawnow; colormap(gray);
title('Denoised and Smoothed Binary Hand Image');
figure(fighandle); subplot(2,3,6), imagesc(image_6);
axis equal; axis tight; drawnow;
title('Masked Hand Image');
print -djpeg -r300 output
.
- Follow-Ups:
- Re: Printing Matlab Figures
- From: Bryan Smith
- Re: Printing Matlab Figures
- Prev by Date: Re: Invalid Mex file????
- Next by Date: Re: Jacobian from ODE solver
- Previous by thread: colorbar overlapping plot label
- Next by thread: Re: Printing Matlab Figures
- Index(es):