日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

matlab中boxplot函数的参数设置_matlab中boxplot字体大小设置

發布時間:2024/9/30 77 豆豆
生活随笔 收集整理的這篇文章主要介紹了 matlab中boxplot函数的参数设置_matlab中boxplot字体大小设置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

網上找到的:

set(findobj(gca,'Type','text'),'FontSize',18)

boxplot() uses the default axes labeling for the Y axes, but for the X axes, it uses text() to put the labels in place and it does not grab the axes FontSize when it does so.

Note: it is likely that with an 18 point font that the labels will overlap the y=0 axes.

意思就是boxplot的y軸坐標字體用的是默認的,可以通過

set(gca, 'Fontsize', 14);

來修改

而x軸字體是通過text()放進去的,不能通過默認方法修改,可以通過修改Type=Text類型的字體來做到

set(findobj(gca,'Type','text'),'FontSize',18)

不過字體太大重疊了,用這個方法可以避免重疊

txt = findobj(gca,'Type','text');

set(txt(3:end),'VerticalAlignment', 'Middle');

參考地址:

http://www.mathworks.com/matlabcentral/answers/2461-boxplot-xtick-label-size

總結

以上是生活随笔為你收集整理的matlab中boxplot函数的参数设置_matlab中boxplot字体大小设置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。