Changing Fonts Size in Matlab Plots

前端 未结 7 1889
隐瞒了意图╮
隐瞒了意图╮ 2020-12-07 11:55

I want to change Font Size for xlabel, ylabel, axis size, legend font size a.k.a everything at once, is this possible? By default, font is Helvetic

7条回答
  •  一个人的身影
    2020-12-07 12:25

    If anyone was wondering how to change the font sizes without messing around with the Matlab default fonts, and change every font in a figure, I found this thread where suggests this:

    set(findall(fig, '-property', 'FontSize'), 'FontSize', 10, 'fontWeight', 'bold')

    findall is a pretty handy command and in the case above it really finds all the children who have a 'FontSize' property: axes lables, axes titles, pushbuttons, etc.

    Hope it helps.

提交回复
热议问题