Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any input for ColorFunction, which ranges from Black for smallest values, goes through red-orange-yellow and ends in very bright yellow almost white for the highest values of the ListDensityPlot?

share|improve this question
up vote 2 down vote accepted

So you can either pick one here:

{#, ColorData@#} & /@ ColorData["Gradients"] // Short

enter image description here

or create your own with Hue:

col = Function[Blend[{Black, Hue@.05, Hue@.15, White}, Slot[1]]]

or by naming the colours you want:

col1 = Function[Blend[{Black, Red, Orange, Yellow, White}, Slot[1]]]

ListDensityPlot[Table[1/(x^2 + y^2), {x, -2, 2, 4/51}, {y, -2, 2, 4/51}], 
  ColorFunction -> #]& /@ {col, col1}

Mathematica graphics

share|improve this answer

Look at some candiates:

  Show[ColorData[#, "Image"], ImageSize -> 110] & /@ (cd = 
     ColorData["Gradients"]), 4, 4, 1, {}], Spacings -> .5]

enter image description here

Number 47 looks interesting...

ColorData[%, "Image"]

(* SunsetColors *)

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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