“cmd.spectrum” colors atoms with a spectrum of colors based on an atomic property.
def spectrum(string expression, string palette, string selection, float minimum, float maximum, int byres, int quiet)
def spectrum(expression="count", palette="rainbow", selection="(all)", minimum=None, maximum=None, byres=0, quiet=1):