How to change the font size of a plot's title and axis labels and save it?

前端 未结 3 1104
暗喜
暗喜 2021-01-24 14:33

Every time I save a plot picture as jpg or png, font size of title and axis label is changed back to default automatically. My code is like this:

figure
plot(x,          


        
3条回答
  •  时光取名叫无心
    2021-01-24 15:25

    Because it just applies for the current figure.

    If you want to set the same font size for the whole session, use:

    set(0,'defaultAxesFontSize', 12);
    

    If you want that permanently, put it in your start-up file.


    By the way, as you can see here you can build every "default property" you wish by concatenating default + class name + property.

提交回复
热议问题