matlab中boxplot字体大小设置
2014-12-07 16:42
253 查看
网上找到的: 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】设置绘图的大小,字号,线宽,字体--按投稿要求
- matlab作图字体大小常规设置
- matlab 设置绘图的大小,字号,线宽,字体--按投稿要求
- matlab 设置绘图的大小,字号,线宽,字体--按投稿要求
- Matlab设置字体大小
- matlab更改colorbar字体的大小,设置范围
- 关于matlab绘图中字体及图片大小等的设置
- c#.net 文本编辑控件——设置RichTextBox的字体和字体大小
- Symbian中设置屏幕字体大小以及样式
- window print 设置字体大小
- 设置字体大小
- symbian Series 60 3rd上绘图时设置字体的大小
- 在AS3中设置ComboBox组件的字体大小
- myeclipse中设置字体大小
- c# asp.net 调用系统设置字体文本框,设置label或页面字体,大小,FontDialog
- MSN 8.5 去广告及字体大小设置方法
- S60 3rd中设置字体类型与字体大小
- 调用Combobox的DrawItem和MeasureItem事件设置项字体的颜色和大小以及项的高度和宽度
- eclipse 设置工程字体大小
- edit控件中如何设置字体的颜色,并把一行文字设置成不同大小。