GetAnalogueColourMap

The GetAnalogueColourMap function of the mplreport class returns a colour map that allows you to convert the analogue value of a property to a matching colour using the AQLHistResponse object returned from the FetchHistory command.

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.