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$
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$
  • 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 Mar 6 '15 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 Mar 6 '15 at 9:34
  • 2
    $\begingroup$ Nice. {ColorData[#, "AlternateNames"] // First, ColorData[#, "Panel"]} & /@ ColorData["Indexed"] // Grid $\endgroup$ – Dr. belisarius Mar 6 '15 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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