博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
matlab中boxplot字体大小设置
阅读量:7284 次
发布时间:2019-06-30

本文共 709 字,大约阅读时间需要 2 分钟。

网上找到的: 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

 

转载于:https://www.cnblogs.com/wacc/p/4149546.html

你可能感兴趣的文章
exp/imp(导出/导入)
查看>>
Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.
查看>>
阿里与菜鸟:“计划”思维能否指挥“市场”物流
查看>>
SQL inject 漏洞手工利用过程详解:get shell
查看>>
SQL-删除重复记录
查看>>
Numpy
查看>>
【matlab】合并两个cell
查看>>
查询引用 表,视图,的所有存储过程
查看>>
有限偏序集必有最大元
查看>>
我要学算法
查看>>
空间谱专题07:干涉仪仿真思路
查看>>
查询该表的所有字段名以及该字段的最大值最小值
查看>>
mysql 案例 ~ 主从复制延迟之并行复制
查看>>
模拟 POJ 2993 Emag eht htiw Em Pleh
查看>>
JMETER 使用JDBC查找数据作为参数
查看>>
BT网站-IBMID.COM
查看>>
hashmap和hashtable区别
查看>>
android intent 及自定义消息传递
查看>>
ios 判断某个时间是周几的方法
查看>>
【引】How to Choose the Best Way to Pass Multiple Models in ASP.NET MVC
查看>>