I want to plot custom colorbar of lines plotted on the image. Kindly suggest me a solution.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
NColors = 10;
RGBn = linspecer(NColors);
moon = imread('moon.tif');
imshow(moon);
quiver(0,0,5,5,'color',mycol); %mycol is conditionally selected from RGBn; multiple arrows are plotted on the image
colorbar % shows the colorbar of moon. But I want to display the colorbar of my custom 10 colors. Is that possible?
0 commentaires
Réponses (1)
Walter Roberson
le 2 Oct 2016
colormap(RGBn)
after the imshow() and before the colorbar()
0 commentaires
Voir également
Catégories
En savoir plus sur Earth and Planetary Science dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!