Changing Fonts Size in Matlab Plots

前端 未结 7 1888
隐瞒了意图╮
隐瞒了意图╮ 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:19

    To change the default property for your entire MATLAB session, see the documentation on how default properties are handled.

    As an example:

    set(0,'DefaultAxesFontSize',22)
    x=1:200; y=sin(x);
    plot(x,y)
    title('hello'); xlabel('x'); ylabel('sin(x)')
    

提交回复
热议问题