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

HeatMap(label+shadow) /* Heap map with cell labels and shadows. */

HeatMap(;​10) /* Heap map with 10 rows. */

HeatMap(shadow;​50;​100) /* Heap map with 50 x 100 cells with shadows. */

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

OpenChart(0;​0;​450;​14;​on)

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

CloseChart()

10

OpenChart(0;​25;​450;​14;​on)

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

CloseChart()

18

CloseDrawing()

HEAT_MAP_01
HEAT_MAP_02
1

OpenDrawing(140;​140)

2

OpenChart(0;​0;​140;​140;​on)

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

CloseChart()

9

CloseDrawing()

HEAT_MAP_02
HEAT_MAP_03
1

OpenDrawing(320;​320)

2

OpenChart(10;​10;​300;​300;​on)

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

HeatMap(label)

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

CloseChart()

22

CloseDrawing()

HEAT_MAP_03
HEAT_MAP_04
1

OpenDrawing(300;​300)

2

SetThousandsSep(",")

3

OpenChart(0;​0;​300;​300;​on)

4

ChartData( 16 116 4000 4000 249 90 10 19 196 2578

5

242 4000 84 20 12 4000 3322 2505 1012 2067)

6

HeatMap(label;​10;​2)

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

CloseChart()

17

CloseDrawing()

HEAT_MAP_04
HEAT_MAP_05
1

OpenDrawing(260;​310)

2

OpenChart(10;​10;​240;​240;​on)

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

CloseChart()

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

AddLine( 20;​10;​ 20;​22;​1;​gray)

32

AddLine( 70;​10;​ 70;​22;​1;​gray)

33

AddLine(120;​10;​120;​22;​1;​gray)

34

AddLine(170;​10;​170;​22;​1;​gray)

35

AddLine(220;​10;​220;​22;​1;​gray)

36

AddText( 20;​32;​"-100";​Verdana;​9;​bold;​#555;​center)

37

AddText( 70;​32;​ "-50";​Verdana;​9;​bold;​#555;​center)

38

AddText(120;​32;​ "0";​Verdana;​9;​bold;​#555;​center)

39

AddText(170;​32;​ "50";​Verdana;​9;​bold;​#555;​center)

40

AddText(220;​32;​ "100";​Verdana;​9;​bold;​#555;​center)

41

Background(white;​;​0.5;​#aaa;​;​0 1 2)

42

CloseView()

43

CloseDrawing()

HEAT_MAP_05

See also functions LegendColorScale() and LegendColorTones() .
For more examples, please refer to Color Scales.

Scroll to Top