<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237406</link>
    <title>MATLAB Central Newsreader - saveas with exact figure dimensions?</title>
    <description>Feed for thread: saveas with exact figure dimensions?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 12 Oct 2008 21:03:02 -0400</pubDate>
      <title>saveas with exact figure dimensions?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237406#604870</link>
      <author>David Doria</author>
      <description>When I use&lt;br&gt;
saveas(gcf, filename.pdf)&lt;br&gt;
&lt;br&gt;
it produces a pdf with the figure centered on a 8.5x11 paper.&lt;br&gt;
&lt;br&gt;
I have seen these&lt;br&gt;
set(gcf, 'papersize', [width height]);&lt;br&gt;
set(gcf, 'paperposition', [left bottom width height]);&lt;br&gt;
&lt;br&gt;
but do you really have to set these manually? It seems like the default should be to save only the image - is there an option I'm not seeing to save only the image with no giant white border?&lt;br&gt;
&lt;br&gt;
also, what is the difference between &lt;br&gt;
&lt;br&gt;
print('-dpdf', filename);&lt;br&gt;
&lt;br&gt;
and &lt;br&gt;
&lt;br&gt;
saveas(gcf, filename.pdf)&lt;br&gt;
&lt;br&gt;
?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Dave</description>
    </item>
    <item>
      <pubDate>Mon, 13 Oct 2008 13:37:01 -0400</pubDate>
      <title>Re: saveas with exact figure dimensions?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237406#604972</link>
      <author>David Doria</author>
      <description>I found this:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.fr/matlabcentral/fileexchange/loadFile.do?objectId=16179&amp;objectType=file&quot;&gt;http://www.mathworks.fr/matlabcentral/fileexchange/loadFile.do?objectId=16179&amp;objectType=file&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
it pretty much does the trick.&lt;br&gt;
&lt;br&gt;
Dave</description>
    </item>
  </channel>
</rss>

