Creating a heat map that would color different sectors of a circle
Afficher commentaires plus anciens
Hi all,
I have plotted 197 circles each with 3 sectors on a single plot. I have a value (a number between 1 and 30) associated with each sector and would like to create a heat type map that would color each sector of a circle based on its associated value. The values are stored in 3x197 matrix.
Any help is much appreciated.
Réponse acceptée
Plus de réponses (1)
Thorsten
le 8 Oct 2014
You can define a colormap with 30 entries with, e.g.,
cmap = jet(30);
and then draw a filled circle segment with code from http://www.mathworks.com/matlabcentral/answers/6322-drawing-a-segment-of-a-circle and color the segment by using the number as index to your colormap. You have to do this for all three segments for all your 197 circles.
1 commentaire
Amir A
le 8 Oct 2014
Catégories
En savoir plus sur Blue dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
