R2014b problem exporting EPS
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Bolin
am 5 Nov. 2014
Beantwortet: Doug Hull
am 11 Nov. 2014
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 Kommentar
Paul
am 7 Nov. 2014
This is definitely a bug as I have the same problem. I am also using OS X Yosemite and version R2014b. I used eps graphics converted to pdf by Preview for figures in LaTeX. As a work around I would use pdf generated by Matlab as these come out with the correct page size, however, my LaTeX compiler will not recognize pdf generated by MatLab R2014b. Pdf generated by the previous version of Matlab worked just fine so it seems that not just eps generation is messed up in the new version.
Akzeptierte Antwort
Doug Hull
am 11 Nov. 2014
Thank you for your patience. We have published an article about this.
The short answer is we are placing the BoundBox information at the end of the file. This is in accorance with the standard. Unfortunatly, some readers do not recognize this. Someone here has made a script to move the boundingbox information in the file:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!