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

94 visualizaciones (últimos 30 días)
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.

Respuestas (2)

Andrea Fino
Andrea Fino el 25 de Nov. de 2019
Editada: Andrea Fino el 25 de Nov. de 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.

Michael Mullen
Michael Mullen el 19 de Jun. de 2018
This link helped me!

Community Treasure Hunt

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

Start Hunting!

Translated by