Trouble setting axis tick label size/weight (R2013b)
2 次查看(过去 30 天)
显示 更早的评论
Hello all. I have R2013b running on a Mac (OS X 10.8.5) and am running into trouble changing the font size and weight of the axis tick labels. Here is the code I'm using:
load('carsmall')
v4 = Cylinders==4 ;
figure ;
boxplot(MPG,v4,'labels',{'v6+','v4'})
set(gca,'FontSize',14,'FontWeight','bold')
When I run this, the Y-axis tick labels change to 14-point font but they are not bolded. The X-axis tick labels do not change at all. What am I doing wrong?
Thanks in advance.
2 个评论
Doug Hull
2013-11-15
v4 = Cylinders==4
I doubt this line of code does what you think it does. What is the variable Cylinders, and what do you expect this line of code does?
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!