From: Arthur Zheng on
Here is a sample code:
**********************************
value = [1 3 2];
ytickword = {'label1' 'label2' 'label3'};
barh(value);
set(gca, 'yTick', 1:numel(ytickword))
set(gca, 'yTicklabel', ytickword);
***********************************

Is there a way to make 'label2' bold in the figure? thanks.
From: us on
"Arthur Zheng" <hzheng7(a)gatech.edu> wrote in message <hr78jc$9o2$1(a)fred.mathworks.com>...
> Here is a sample code:
> **********************************
> value = [1 3 2];
> ytickword = {'label1' 'label2' 'label3'};
> barh(value);
> set(gca, 'yTick', 1:numel(ytickword))
> set(gca, 'yTicklabel', ytickword);
> ***********************************
>
> Is there a way to make 'label2' bold in the figure? thanks.

no
us
From: Matt Fig on
But, you can fake it with text.




value = [1 3 2];
ytickword = {'label1' '' 'label3'};
barh(value);
set(gca, 'yTick', 1:numel(ytickword))
set(gca, 'yTicklabel', ytickword);
text(-.28,2,'label2','fontweight','bold')
From: us on
"Matt Fig" <spamanon(a)yahoo.com> wrote in message <hr79a0$pac$1(a)fred.mathworks.com>...
> But, you can fake it with text.
>
>
>
>
> value = [1 3 2];
> ytickword = {'label1' '' 'label3'};
> barh(value);
> set(gca, 'yTick', 1:numel(ytickword))
> set(gca, 'yTicklabel', ytickword);
> text(-.28,2,'label2','fontweight','bold')

matt
i LOVE the -.28...

:=)
us
From: Matt Fig on
"us " <us(a)neurol.unizh.ch> wrote in message <hr79ot$q7d$1(a)fred.mathworks.com>...
> matt
> i LOVE the -.28...
>
> :=)
> us

Adjust as necessary,.... LOL.