Why does Matlab 2016a automatically change font size of my figure when I save it as pdf?

105 views (last 30 days)
When I plot a figure, I use "set(gca, 'FontSize', 6.0);" to set axes' font to size 6 pt. However, when I save the figure to pdf format, I can see matlab automatically enlarge the figure in displaying window, and then saves it, and finally the font size is recovered in displaying window to 6 px. By using AI, I found the font in saved pdf is size 8 pt. I want to know how to keep the font size in saving pdf?
In fact, any font that is smaller than 8 will be changed to size 8.

Answers (3)

Andrea Fino
Andrea Fino on 25 Nov 2019
Edited: Andrea Fino on 25 Nov 2019
Same issue, the solution is in File->Export Setup, than change the "Scale font by that should be set as "auto" " then tap "Apply to Figure" and let's export your file ;)
Please see the attachment for details.
Hope that will help.
A. F.

Firas Omran
Firas Omran on 28 Nov 2017
I have the same issue but still no answer.

Michael Mullen
Michael Mullen on 19 Jun 2018
This link helped me!


Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by