group in time bins
minor renaming
get colors from python