Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

2 Answers 2

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.