Colorbar and colormap scale
3 ビュー (過去 30 日間)
古いコメントを表示
I am trying to add a colorbar to a series of images that contain colormap data. The best colormap for my data , for visual purposes is prism, but I have trouble with the scaling of the colorbar. I have gaze data, which I passed through a bivariate histogram and normalized them to percentages of the total gazes on the image. I select the colormap for my image (prism) and everything goes well. But trying to add a colorbar, produces inane results. In this example, the range of my colorbar is set with to: caxis([0 100]); If I change the range and make the caxis from 0 - maximum percentage in my matrix, still the result is equally wrong, only with changed values on the bar. I want my colorbar to reflect the colors in the image, but it seems the colorbar comes from another colormap. In my code I first call the function that creates the image and then the colorbar and the caxis command. Am I missing something? :S
2 件のコメント
Walter Roberson
2016 年 7 月 13 日
That certainly isn't a colorbar for prism.
Please show your colorbar() call
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Colormaps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!