“cmd.ramp_new” creates a color ramp based on a map potential value or based on proximity to a molecular object.
def ramp_new(string name, string map_name, list range, list color, int state, string selection, float beyond, float within, float sigma, int zero, int quiet)
def ramp_new(name, map_name, range=[-1.0,0.0,1.0], color=['red',[1.0,1.0,1.0],'blue'], state=0, selection='', beyond=2.0, within=6.0, sigma=2.0, zero=1, quiet=1):