0
是否可以改变颜色条的颜色而不改变图形的颜色?从图形matlab中去除颜色条
figure_1 = figure;
j1= bar(rand(2,10),'stacked');
colormap(winter)
htx = colorbar('SouthOutside');
colormap(jet)
我特别想有与色彩表冬天并按照颜色表喷的颜色条彩色的数字对象......是有可能去耦2?
是否可以改变颜色条的颜色而不改变图形的颜色?从图形matlab中去除颜色条
figure_1 = figure;
j1= bar(rand(2,10),'stacked');
colormap(winter)
htx = colorbar('SouthOutside');
colormap(jet)
我特别想有与色彩表冬天并按照颜色表喷的颜色条彩色的数字对象......是有可能去耦2?
有两个FileExchange函数用于此目的,结果令人满意。 freezeColors,在@Benoit_11在他的评论中给出的链接中提到,它可以让你在一个图中有两个或更多的子图,但有不同的颜色映射,但颜色条必须很难,freezeColors
忽略它们。为此,您需要COLORMAP and COLORBAR utilities,尤其是cbfreeze
,它将修复色条并防止其发生变化。
所以,你的代码应该是这样的:
figure_1 = figure;
j1= bar(rand(2,10),'stacked');
colormap(winter)
freezeColors;
htx = colorbar('SouthOutside');
colormap(jet)
cbfreeze(htx);
但愿帮助:http://www.mathworks.com/matlabcentral/answers/101346-how-do-i-use-multiple-colormaps-在一个单一的数字? – 2014-12-05 13:42:03