フィルターのクリア

Trouble setting axis tick label size/weight (R2013b)

7 ビュー (過去 30 日間)
Sam
Sam 2013 年 11 月 15 日
回答済み: Ilyas 2013 年 12 月 27 日
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
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?
Sam
Sam 2013 年 11 月 21 日
Sorry for the delayed reply here; I was expecting an email notification and never got one. The variable Cylinders is a 100x1 double, and the second line generates a 100x1 logical with TRUE for observations with four cylinders. When used as the second argument in boxplot, it acts essentially as a categorical variable.

サインインしてコメントする。

回答 (1 件)

Ilyas
Ilyas 2013 年 12 月 27 日
You can find the answer to your question in the following thread:
Regards,

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by