HeatMap
HeatMap ( appearanceConst ; numOfRows ; numOfCols )
| Argument | Type | Range | Default | Note |
|---|---|---|---|---|
| appearanceConst | int | 0..127 | default | |
| numOfRows | int | 1..100000 | (autom.) | |
| numOfCols | int | 1..100000 | (autom.) |
Examples
Description
A total of 3 functions are available to set up heat maps: HeatMap(), HeatMapOptions() and FillColorScale() .
| | HEAT_MAP_01 |
| 1 | OpenDrawing(450;40) |
| 2 | |
| 3 | ChartData(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30) |
| 4 | HeatMap(;1) /* 1 row. */ |
| 5 | HeatmapOptions(2;1.0) /* After HeatMap(). 2 pixel wide gaps and oval shaped cells. */ |
| 6 | /* Set up styles. */ |
| 7 | FillColorScale(1;11;shaded) |
| 8 | BorderStyle(1;none) |
| 9 | |
| 10 | |
| 11 | ChartData(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30) |
| 12 | HeatMap(;1) /* 1 row. */ |
| 13 | HeatMapOptions(2;0.5;0.3) /* After HeatMap(). 2 pixel wide gaps and scaled cells. */ |
| 14 | /* Set up styles. */ |
| 15 | FillColorScale(1;1;shaded) |
| 16 | BorderStyle(1;none) |
| 17 | |
| 18 |
| | HEAT_MAP_02 |
| 1 | OpenDrawing(140;140) |
| 2 | |
| 3 | ChartData(10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 13 13 13 12 11 10 9 8 8 7 7 7 8 8 9 10 11 12 13 13 16 16 15 13 12 10 8 7 5 4 4 4 5 7 8 10 12 13 15 16 18 18 17 15 13 10 8 5 3 2 2 2 3 5 8 10 13 15 17 18 20 19 18 16 13 10 7 4 2 1 0 1 2 4 7 10 13 16 18 19 20 20 18 16 13 10 7 4 2 0 0 0 2 4 7 10 13 16 18 20 20 19 18 16 13 10 7 4 2 1 0 1 2 4 7 10 13 16 18 19 18 18 17 15 13 10 8 5 3 2 2 2 3 5 8 10 13 15 17 18 16 16 15 13 12 10 8 7 5 4 4 4 5 7 8 10 12 13 15 16 13 13 13 12 11 10 9 8 8 7 7 7 8 8 9 10 11 12 13 13 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 7 7 8 8 9 10 11 12 13 13 13 13 13 12 11 10 9 8 8 7 4 4 5 7 8 10 12 13 15 16 16 16 15 13 12 10 8 7 5 4 2 2 3 5 8 10 13 15 17 18 18 18 17 15 13 10 8 5 3 2 0 1 2 4 7 10 13 16 18 19 20 19 18 16 13 10 7 4 2 1 0 0 2 4 7 10 13 16 18 20 20 20 18 16 13 10 7 4 2 0 0 1 2 4 7 10 13 16 18 19 20 19 18 16 13 10 7 4 2 1 2 2 3 5 8 10 13 15 17 18 18 18 17 15 13 10 8 5 3 2 4 4 5 7 8 10 12 13 15 16 16 16 15 13 12 10 8 7 5 4 7 7 8 8 9 10 11 12 13 13 13 13 13 12 11 10 9 8 8 7) |
| 4 | HeatMap() |
| 5 | /* Set up styles. */ |
| 6 | FillColorScale(1;8;shaded) |
| 7 | BorderStyle(1;none) |
| 8 | |
| 9 |
| | HEAT_MAP_03 |
| 1 | OpenDrawing(320;320) |
| 2 | |
| 3 | ChartData(1 2 3 4 5 6 7 |
| 4 | 8 9 10 11 12 13 14 |
| 5 | 15 16 null null null 20 21 |
| 6 | 22 23 null null null 27 28 |
| 7 | 29 30 null null null 34 35 |
| 8 | 36 37 38 39 40 41 42 |
| 9 | 43 44 45 46 47 48 49) |
| 10 | |
| 11 | HeatMapOptions(5; /* cellGap */ |
| 12 | 0.25; /* cellCornerRadius */ |
| 13 | 1; /* cellScaleFactor */ |
| 14 | off; /* arrangeColumnByColumn */ |
| 15 | on) /* optimizeLabelTextColor */ |
| 16 | FillColorScale(1;11;shaded) |
| 17 | BorderStyle(1;;0.25;0 0 0 60) |
| 18 | LabelTexts(1;"|f1|") |
| 19 | LabelStyle(1;Arial;8;bold;60 60 60) |
| 20 | LabelOptions(1;topLeft) |
| 21 | |
| 22 |
| | HEAT_MAP_04 |
| 1 | OpenDrawing(300;300) |
| 2 | SetThousandsSep(",") |
| 3 | |
| 4 | ChartData( 16 116 4000 4000 249 90 10 19 196 2578 |
| 5 | 242 4000 84 20 12 4000 3322 2505 1012 2067) |
| 6 | |
| 7 | HeatMapOptions(0; /* cellGap */ |
| 8 | 0; /* cellCornerRadius */ |
| 9 | 1; /* cellScaleFactor */ |
| 10 | on; /* arrangeColumnByColumn */ |
| 11 | on) /* optimizeLabelTextColor */ |
| 12 | FillColorScale(1;20) |
| 13 | BorderStyle(1;0) |
| 14 | LabelTexts(1;"|u|") |
| 15 | LabelStyle(1;Verdana;9.5;bold) |
| 16 | |
| 17 |
| | HEAT_MAP_05 |
| 1 | OpenDrawing(260;310) |
| 2 | |
| 3 | ChartData( 9 18 27 35 43 51 59 66 72 78 |
| 4 | 18 35 51 66 78 88 95 99 100 97 |
| 5 | 27 51 72 88 98 100 95 83 65 43 |
| 6 | 35 66 88 99 97 83 58 26 -10 -44 |
| 7 | 43 78 98 97 78 43 -1 -44 -79 -98 |
| 8 | 51 88 100 83 43 -10 -60 -92 -99 -77 |
| 9 | 59 95 95 58 -1 -60 -95 -95 -58 2 |
| 10 | 66 99 83 26 -44 -92 -95 -50 20 79 |
| 11 | 72 100 65 -10 -79 -99 -58 20 85 97 |
| 12 | 78 97 43 -44 -98 -77 2 79 97 41) |
| 13 | HeatMap(;10;10) |
| 14 | /* Set up styles. */ |
| 15 | FillColorScale(1;9) |
| 16 | BorderStyle(1;;1;#666) |
| 17 | |
| 18 | /* Legend */ |
| 19 | OpenView(10;260;240;40) |
| 20 | AddRect(20;10;200;10;1 0 1 0.0 45 67 126 255 |
| 21 | 0.1 50 68 123 255 |
| 22 | 0.2 53 91 80 255 |
| 23 | 0.3 59 105 54 255 |
| 24 | 0.4 89 126 48 255 |
| 25 | 0.5 140 159 54 255 |
| 26 | 0.6 197 186 60 255 |
| 27 | 0.7 214 172 68 255 |
| 28 | 0.8 189 106 58 255 |
| 29 | 0.9 169 41 45 255 |
| 30 | 1.0 137 37 37 255;;1;gray) |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | Background(white;;0.5;#aaa;;0 1 2) |
| 42 | |
| 43 |
See also functions LegendColorScale() and LegendColorTones() .
For more examples, please refer to Color Scales.