|
ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Reports > Heat maps > Setting up a heat map > Specifying what to plot on a heat map > Heat map background settings > The Heat map colour set window The Heat map colour set window
IntroductionThe heat map colour set window, shown in figure 1, is used to define the colours in which a heat map is drawn. In essence you just need to specify two colours, the 'coldest' colour and the 'hottest' colour. However, there are a number of things you need to take into consideration when choosing the colours to use.
Figure 1. The Heat map colour set window.
Details
Choosing the colours, and how they're usedIn essence, all you are doing when you define a colour set is to choose the two colours at either end of the heat map scale - ANY-maze then draws the heat map using the colours between them. However, this implies that there is some set sequence that can be used to move from one colour to another. If, rather than choosing two colours, we were choosing two numbers, then it would be fairly obvious that if the 'coldest' number was 4 and the hottest number was 22, then we'd have a heat map scale that would go something like, 4, 5, 6 ... 20, 21, 22. So what we want to do is create a similar sequence for colours, starting from our coldest colour (say, dark orange) and going up to our hottest colour (say, light green) - but what colours come between them? Well, the rainbow provides a well-known ordered sequence for colours that goes red, orange, yellow, green, blue, indigo, violet. So we could say that in our example (moving from dark orange to light green) the colours would go: orange, yellow, green. And if we start with dark orange and end with light green, we could also say that we'll start with a dark colour and get progressively lighter. And in essence that's what ANY-maze does. In the world of computers, colours are often defined as a mix of the primary colours Red, Green and Blue (usually referred to as RGB). But there's another, less well known way to define colours, which is based on their Hue, Saturation and Lightness (or HSL). Here, Hue is the colour itself (such as orange or green), Saturation is how much of the colour we have (so no saturation is grey and full saturation is very orange or very green) and Lightness (also sometimes called luminance) is how bright the colour is (so low lightness is a dark orange and high lightness is a pale orange). In fact, you'll see a colour's HSL values in the colour picker window which ANY-maze uses - see figure 2, below.
Figure 2. The colour picker window. The values for a colour's hue, saturation and lightness (or luminance) are shown just below the colour square.
When you use the colour picker, you are actually using HSL without really knowing it. The colourful square shows different Hues going from side to side, and different saturations going from bottom to top. And the rectangle to the right of the square has different lightness going from bottom to top.
Figure 3. Using the colour picker window, you define a colour by setting its Hue, Saturation and Lightness.
Getting back to our heat map colours, we have a cold colour (dark orange in my example) and a hot colour (light green) and the challenge is to decide what colours come in between. You're probably starting to see the answer. If we break the colours down into their HSL values then we can move in sequence from the cold colour's hue to the hot colour's hue (effectively moving across the colourful square in the colour picker window). In the same way, we can also move from the cold colour's saturation value to the hot colour's saturation value, and we can do the same for lightness; so now we have a way to define what other colours come between the two colours you choose. What ANY-maze actually does is to create 250 colours between the cold and hot colours you select. For each colour, it works out new hue, saturation and lightness values, being the values between the cold and the hot colours. For example, if the cold colour had a hue of 20 and the hot colour had a hue of 80 then the 125th colour (i.e. the one in the middle) would have a hue of 50 (half way between 20 and 80). Similarly if the cold colour had a lightness value of 80 and the hot colour had a lightness value of 100 then the 125th colour would have a lightness value of 90, and let's say that the cold and hot colours have the same saturation value of 200, so the 125th colour will also have saturation of 200. So the 125th colour would be H=50, S=200, L=90 which is a slightly muddy green! Hopefully this all seems reasonably logical and you're now understanding how ANY-maze creates a sequence of colours for the heat map using the cold and hot colours that you choose. However, there are a couple of additional things you need to be aware of:
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T0694 |