1
$\begingroup$

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?

$\endgroup$
0

2 Answers 2

2
$\begingroup$

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, [email protected], [email protected], 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

$\endgroup$
2
$\begingroup$

Look at some candiates:

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

enter image description here

Number 47 looks interesting...

cd[[47]]
ColorData[%, "Image"]

(* SunsetColors *)

enter image description here

$\endgroup$

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.