The problem I'm facing is how to adapt ColorFunction so that it ranges from green (low values) to red (high values):
ArrayPlot[{a1, a2, a3, a4, a5}, ColorFunction -> (* ??? *)]
|
|
If you need to specify a more specific range of colors:
|
|||||||||
|
|
Here are some data:
In Mathematica there are designated so called Color Schemes. For example in your case you could use "RoseColors":
But I personally would go with "TemperatureMap" as good indicator of low/high values. Another way to is to use
|
||||
|
|
|
This works:
Here's a little utility function for automatically generating a color function that linearly interpolates between two colors:
Examples:
As already noted, the function generated by |
||||
|
|