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.

Usually

ColorData["TemperatureMap"]

is using to coloring graphs and show how near is any value to 0(Blue), 1(Red), or in the mean (White).

The question is:

How Can I do to obtain the RGB/CMYK code color, to a particualr value?

for example,... to the value 0 is asigned BLUE=(0,0,100)%=(0,0,255)Hex but... What color-code asign the "TemperatureMap" to the value 0.123 ?, I know that it´s a close to blue, but... What exactly?

I´ll use in other ranges like [0,8] or 1[12.45,45.85], not only in [0,1]

share|improve this question

closed as off-topic by rasher, Yves Klett, m_goldberg, Oleksandr R., Sjoerd C. de Vries Apr 24 at 10:36

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – rasher, Yves Klett, m_goldberg, Oleksandr R., Sjoerd C. de Vries
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
ColorData["TemperatureMap"][0.123] gives RGBColor[0.377562, 0.501447, 0.945279]. Is this what you need? –  kguler Apr 24 at 4:13
    
@kguler, Yes! :-) That´s the solution. SOLVED! Thank You. –  Mika Ike Apr 24 at 4:18

1 Answer 1

up vote 1 down vote accepted
 ColorData["TemperatureMap"][0.123]  (*  Using the default range [0,1] *)
 (* RGBColor[0.377562, 0.501447, 0.945279] *)
 ColorData[{"TemperatureMap", {20, 40}}][35]   (* Range rescaled to [20,40]  *)
 (* RGBColor[0.955963, 0.863115, 0.283425] *)

 Row[ColorSlider[#, AppearanceElements -> "Swatch"] & /@
   {ColorData["TemperatureMap"][0.123],
    ColorData[{"TemperatureMap", {20, 40}}][35]}, Spacer[1]]

enter image description here

share|improve this answer

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