HeatMap

New in version 4.0

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;​15;​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) /* 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;​15;​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 8 9 10 null 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 null null 40 41 42 43 44 45 46 47 48 49)

4

HeatMap(label)

5

HeatMapOptions(5;​0.25;​1) /* After HeatMap() */

6

/* Set up styles. */

7

FillColorScale(1;​11;​shaded)

8

BorderStyle(1;​;​0.25;​0 0 0 60)

9

LabelTexts(1;​"|f1|")

10

LabelStyle(1;​Arial;​7;​bold;​60 60 60)

11

LabelOptions(1;​topLeft)

12

ShadowStyle(1;​0 0 5;​gray)

13

CloseChart()

14

CloseDrawing()

HEAT_MAP_03
HEAT_MAP_04
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_04

For more examples, please refer to Color Scales.

Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×