Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Confusing documentation on ColorData, where to get list of ColorFunctions ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81022] Re: Confusing documentation on ColorData, where to get list of ColorFunctions ?
  • From: mcmcclure at unca.edu
  • Date: Sat, 8 Sep 2007 03:51:07 -0400 (EDT)
  • References: <fbqqht$787$1@smc.vnet.net>

On Sep 7, 2:19 am, "Nasser Abbasi" <n... at 12000.org> wrote:
> ref/ColorData  says
> "ColorData[] gives a list of names
>  collections of color schemes"
> But When I type ColorData[] nothing
> really comes up.

I get:
{Gradients, Indexed, Named, Physical}

Each of these specifies a collection of color
shemes. ColorData["Gradients"] yields a list of
strings, one of which is BlueGreenYellow.
ColorData[s], where s is a string yields a
function that returns a color directive when fed a
number in [0,1].  As a convenience, the Plot
commands allow you to specify the color using a
string, rather than the whole color function.

Suppose we'd like to see the color schemes.  Let's
check the properties available to the ColorData
function.

ColorData["Properties"]
yields a list of possible properties. One of these
is "Image".  If we try
ColorData["BlueGreenYellow", "Image"] we get a
color strip for the scheme. We can generate a list
of labeled color strips for all the Gradients
color schemes using:
Labeled[ColorData[#, "Image"], #] & /@
 ColorData["Gradients"]

It should be noted that the *Data functions
follow certain conventions.  Thus,
*Data["Properties"] yields a list of properties
for that Data function.

Mark



  • Prev by Date: Re: Plotting a straight line in a 3D plot
  • Next by Date: Re: Mathematica 6 specific Import[ ] problem
  • Previous by thread: Re: [Mathematica 6.0.1] Confusing documentation on ColorData, where
  • Next by thread: using FindMinimum and FindRoot with "numerically defined" functions