4
$\begingroup$

The documentation for ColorData reads:

Possible properties in ColorData["scheme","property"] include:

"ColorFunction"
"ColorList"
"ColorRules"
"Image"
"Name"
"Panel"
"ParameterCount"
"Range"
{"Range",i}

Are there any others?

$\endgroup$

1 Answer 1

8
$\begingroup$

Evaluating ColorData["Properties"] in 10.0.2 returns:

{"AlternateNames", "ColorFunction", "ColorList", "ColorRules",
 "Image", "Name", "Panel", "ParameterCount", "Range", "StandardName"}

This however is also incomplete. Some spelunking reveals that there are more. Here is a complete list from the function definition itself:

"StandardName"
"Name"
"AlternateNames"
"PrivateStandardNames"
"ColorFunction"
"ColorList"
{"ColorList", "Sorted"}
"ColorRules"
{"ColorRules", "Sorted"}
"Range"
{"Range", _Integer?Positive}
"ParameterCount"
"Image"
"Panel"
"ColorNames"
{"ColorNames", "Sorted"}
"BlendArgument"
"PrivateNote"
$\endgroup$
3
  • 2
    $\begingroup$ I think it would be good to mention that a user can get most of these by evaluating ColorData["Properties"], which produces {"AlternateNames", "ColorFunction", "ColorList", "ColorRules", "Image", "Name", "Panel", "ParameterCount", "Range", "StandardName"}. In general, evaluating someData["Properties"] usually produces useful info about someData`. $\endgroup$
    – m_goldberg
    Commented Mar 6, 2015 at 9:32
  • $\begingroup$ @m_goldberg That's a good point, but as that data is now known to be incomplete I was uncertain of the value of mentioning it. $\endgroup$
    – Mr.Wizard
    Commented Mar 6, 2015 at 9:34
  • 2
    $\begingroup$ Nice. {ColorData[#, "AlternateNames"] // First, ColorData[#, "Panel"]} & /@ ColorData["Indexed"] // Grid $\endgroup$ Commented Mar 6, 2015 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.