Re: [問題] colorbar疑問~?已回收
看看下面是不是你要的
hAxes = axes;
ColorDef = winter;
ColorDef = ColorDef';
hThrottle = bar( hAxes , ColorDef , 'stack' );
set( hAxes , 'xlim' , [ 2.91 3.1 ] , 'ylim' , [ 0 50 ] , 'xTick' , [] , ...
'YTickLabel' , { 'Empty' , '0.2' , '0.4' , '0.6' , '0.8' , 'Full' } ,...
'FontWeight' , 'b');
%這行指令用來讓部分的color消失
set( hThrottle(50:64) , 'FaceColor' , 'none' , 'EdgeColor' , 'none' )
※ 引述《sweetdance (此ID停止使用)》之銘言:
: clorbar上假設我要讓色彩的變化是在0~100之間
: 所以我可以用Clim來操作
: 如此一來~colorbar變會有顏色的漸層
: 而colorbar刻畫的數值就會變成0~100
: 那請問有辦法~只秀出0~90的colorbar就好嗎?
: 90~100這段不要...
: 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.198.181.16
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):