Get Rid of the White Space Around Matlab Figure's PDF Output - Stack Overflow

Embed Size (px)

Citation preview

  • 7/28/2019 Get Rid of the White Space Around Matlab Figure's PDF Output - Stack Overflow

    1/2

    /2/12 Get rid of the white space around matlab figure's pdf output - Stack Overflow

    ebcache.googleusercontent.com/search?q=cache:f6e2JP9pFVEJ:stackoverflow.com/questions/380

    Text-only version

    This is Google's cache ofhttp:/ /stackoverflow.com/questions/3801730/get-rid-of-the-white-space-around-matlab-figures-pdf-output. It is a snapshot of the page

    as it appeared on 24 Nov 2012 16:40:47 GMT. The current page could have changed in the meantime. Learn more

    Tip: To quickly find your search term on this page, press Ctrl+F or-F (Mac) and use the find bar.

    These search terms are highlighted: printmatlabfigurepdfcommand

    Bart

    6,707 4 13 25

    mjbrown2

    33 1 4

    6 Answers

    emrea

    580 2 6

    anon55

    31 1

    I'd like to use PDF versions of my matlab plots in a LaTeX document. I'm saving the figures using the

    "saveas" command with the PDF option but I get huge white space around my plots in the pdf files. Is

    this normal? How can I get rid of it? Automatically, of course, since I have "a lot" of plots.

    pdf matlab

    edited Sep 4 at 8:38 asked Sep 27 '10 at 7:07

    Same question: stackoverflow.com/questions/5150802/ DrazickMay 20 '11 at 9:10

    feedback

    Here is a less painful solution than Tobin's: http://tipstrickshowtos.blogspot.com/2010/08/how-to-get-rid-of-white-margin-in.html

    answered Sep 27 '10 at 18:54

    feedback

    I suffered a bit with regards to this b4 finding an easy answer. Save as a .eps, and then convert the .eps

    to .pdf. In Mac OS this can be done in Preview.

    answered yesterday

    feedback

    Exporting Figures for Publication is a good starting point. Instead of -deps use -dpdf forpdfoutput.

    Get rid of the white space around matlab figure's pdf output

  • 7/28/2019 Get Rid of the White Space Around Matlab Figure's PDF Output - Stack Overflow

    2/2