GetAnalogueColourMap

The GetAnalogueColourMap function of the mplreport class returns a colour map that covers the full range of a column in an AQLHistResponse object.

This is usually used to create heatmaps or other colour-coded displays of analogue values. If colouring discrete values, use GetDiscreteColourMap.

Parameters
ParameterTypeDefaultMeaning
dtaAQLHistResponseThe AQL query response, usually from FetchHistory.
colstrThe name of the column you want to build a colour map for
Return

This function returns a tuple with three components.

The first is the colour map itself, a MatPlotLib LinearSegmentedColourMap object.

The second and third are the minimum and maximum (respectively) values that the colour map represents, which should also be the min and max vales of the property itself.