From: Eric Gonzalez on
I still have some problems. I am doing a MatrixPlot with values between 0.6
to 180.0 ( ColorFunction ->
"TemperatureMap"], {ColorData["TemperatureMap"][#1] &, 10,
ToString[Min[mydata]], ToString[Max[mydata]], ) the 0.6 points does not
show blue in the plot so I don't think there is a correspondence between the
legend color map and and the chart. Also how to set several points in the
legend rather than the max and min?
thnk you for your help,
Eric

ShowLegend[
MatrixPlot[mydata, AspectRatio -> 1, Mesh -> All,
PlotRange -> All,
ColorFunction ->
"TemperatureMap"], {ColorData["TemperatureMap"][#1] &, 10,
ToString[Min[mydata]], ToString[Max[mydata]],
LegendPosition -> {1.1, -0.8}, LegendSize -> 1.5,
LegendShadow -> None}]



From: dh on


MatrixPlot seems to use a funny scaling for colors as you can see from:

In the manual one finds:

and:

values over a wide range:"



Eric Gonzalez wrote:

> I still have some problems. I am doing a MatrixPlot with values between 0.6

> to 180.0 ( ColorFunction ->

> "TemperatureMap"], {ColorData["TemperatureMap"][#1] &, 10,

> ToString[Min[mydata]], ToString[Max[mydata]], ) the 0.6 points does not

> show blue in the plot so I don't think there is a correspondence between the

> legend color map and and the chart. Also how to set several points in the

> legend rather than the max and min?

> thnk you for your help,

> Eric

>

> ShowLegend[

> MatrixPlot[mydata, AspectRatio -> 1, Mesh -> All,

> PlotRange -> All,

> ColorFunction ->

> "TemperatureMap"], {ColorData["TemperatureMap"][#1] &, 10,

> ToString[Min[mydata]], ToString[Max[mydata]],

> LegendPosition -> {1.1, -0.8}, LegendSize -> 1.5,

> LegendShadow -> None}]

>

>

>