Prev: supervised learning of semantic classes for image annotation and retrieval source code
Next: Convert to upper/lower case
From: Arthur Zheng on 27 Apr 2010 13:58 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 27 Apr 2010 14:07 "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 27 Apr 2010 14:10 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 27 Apr 2010 14:18 "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 27 Apr 2010 14:21
"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. |