Cannot showing multiple color using pcolor and different cmap
2 次查看(过去 30 天)
显示 更早的评论
I want to show 2 variables : smoker and smokerw in different color using pcolor and two different cmap. I want to show smokerw in red color (hsv(1)), and show smoker in blue color (jet(1))...
I place code like this :
if true
pcolor(X,Y, smokerw');
hold on
pcolor(X,Y, smoker');
cmap1 = hsv(1);
cmap2 = jet(1));
cmap = [cmap1;cmap2];
colormap(cmap);
end
The result show both smoker and smokerw in red color...
I want to show smoker in blue, and smokerw in red...
Someone please help me, thank you...
0 个评论
回答(1 个)
KSSV
2016-12-26
As you re using two different colormaps on the same figure, you have to follow certain rules. Refer the following link:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Orange 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!