Colours of traces are assigned based on type of trace.