From: Eric Gonzalez on 20 Jan 2010 06:47 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 25 Jan 2010 05:09 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}] > > >
|
Pages: 1 Prev: summation with mathematica Next: Using Mathematica to analyze Firefox startup performance |