Wrong color in contourf plot
3 ビュー (過去 30 日間)
古いコメントを表示
I have a matrix with variations in the order of -100 to 100, but I am only interested in what happens close to zero. Thus, I have defined a plotting range from -10 to 10. This works, BUT very low (negative) values becomes white instead of dark blue which it should be due to the colorbar. However, the color is correct for high (positive) values. What can I do to get correct color?
range = linspace(-10,10,11);
q = contourf(MX', MY', U{cam}(:,:,t), range);
contourcmap('jet',linspace(range(1),range(end),7),'colorbar','on','location','horizontal');
Best regards,
Audun Yrke
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!