infer color scale from data