Creating a heat map that would color different sectors of a circle
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Thorsten
am 8 Okt. 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 Kommentar
Amir A
am 8 Okt. 2014
Kategorien
Mehr zu Red finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
