I just updated matlab to r2014b, and found when I tried to export a figure to EPS as I used to do:
set(gcf,'PaperPositionMode','auto'); print -r300 -depsc test.eps
then the figure was printed to a letter size white background, instead of being properly cropped to the actual figure size. Then I tried manually setting the papersize as follows:
set(gcf,'PaperPositionMode','Manual'); set(gcf,'PaperUnits','inches'); set(gcf,'PaperSize',[8 6]); set(gcf,'PaperPosition',[0 0 8 6]); print(gcf,'-r300','-depsc','test.eps')
But it still got printed to a letter size white background!! Is this a bug or have I missed anything? I'm using OS X Yosemite.
Thanks a lot!!
1 Comment
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/161448-r2014b-problem-exporting-eps#comment_248264
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/161448-r2014b-problem-exporting-eps#comment_248264
Sign in to comment.