|
David Doria wrote:
> I found "File - Export Setup" - it let me change the width
> to 5 inches , which fixed the inital problem. However, I am
> trying to put this figure into a latex document, and it
> seems matlab has added white space to fill up an 8.5x11
> piece of paper instead of just using the 5" that I
> specified. Is there a way to prevent this?
>
> Thanks,
>
> David
Something along this line may do the trick - assuming you want to the
output to be 5x5, set both the papersize AND the paperposition
properties on the figure:
set(gcf, 'papersize', [5 5]);
set(gcf, 'paperposition', [0 0 5 5]);
print -dpdf test5x5.pdf
There's also my fillPage File Exchange submission
(http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=16566&objectType=FILE)
that helps with this kind of operation:
oldSettings = fillpage(gcf, 'margins', [0 0 0 0], 'papersize', [5 5]);
print -dpdf test5x5.pdf
set(gcf, oldSettings); % restore previous settings
--
Richard Quist
Software Developer
The MathWorks, Inc.
|