saved pdf file doesn't look like figure
Show older comments
When I save a figure as a pdf file, the pdf version adds spaces which aren't in the original. The two images attached illustrate the problem. The first image is a screenshot of my matlab figure.

The second image is a screenshot of the pdf version.

As you can see there's a huge gap before the gamma in the title, and also before the exponents in the ylabel for the third subplot. I get exactly the same problem using matlab's print command, i.e.,
print(gcf,'-dpdf',printName)
save2pdf(printName)
Any advice as to how to fix this problem would be most appreciated!
3 Comments
Walter Roberson
on 18 Apr 2016
Which matlab version are you using?
Leo Simon
on 21 Apr 2016
Jerry Malone
on 1 Sep 2023
Has this problem ever been solved?
Accepted Answer
More Answers (1)
Bharath Rangaswamy
on 21 Apr 2016
0 votes
Hi Leo,
Open MATLAB, goto preferences>”Figure copy template”>”Copy options” – In this settings you get 3 options for “Clipboard format” please change this option to “Bitmap”.
Then try to save it again. This might help.
-Bharath
3 Comments
Leo Simon
on 21 Apr 2016
Leo Simon
on 21 Apr 2016
Richard Quist
on 17 May 2016
The "Copy Options" preference panel is only available on Windows.
Categories
Find more on Graphics Performance in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!