BUG: Saving plot into png changes the fontsize

17 views (last 30 days)
Saving plot into png changes the fontsize (only) of the XTickLabel and YTickLabel automatically, undependently on the fontsize parameter changed in the code beforehand. Saving the image with "saveas" produces the problem, but first saving it into .fig, open it again and saving it into .png produces no problem.
(using R2020b)
  1 Comment
Yael Bengel
Yael Bengel on 27 May 2022
" but first saving it into .fig, open it again and saving it into .png produces no problem." even don't really works since the title fontsize changed.
Solution: Export setup -> Lines -> Custom width [unchecked]
then export...
Why is this not default?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 27 May 2022
Switch to https://www.mathworks.com/help/matlab/ref/exportgraphics.html

More Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!