Hi All, Assume I have the following data and I want to plot heat map of it. Why I am not getting 6 squares for each row and for each column but getting 5 squares for each rows and columns? Any suggestion.
Thanks in advanve.
data={2.18756, 2.17447, 2.17031, 2.16801, 2.31719, 2.36214, 2.14151, \
2.13749, 2.13819, 2.14531, 2.35749, 2.40783, 2.18333, 2.16507, \
2.17598, 2.21962, 3.52217, 3.60957, 2.21752, 2.14844, 2.15905, \
2.76315, 3.70188, 3.83357, 2.25902, 2.17451, 2.18496, 2.83573, \
3.6727, 3.82887, 2.23612, 2.14, 2.17541, 2.76535, 3.61427, 3.80555};
ListDensityPlot[Partition[data, 6], InterpolationOrder -> 0,
Mesh -> 4, PlotRange -> All, ColorFunction -> "TemperatureMap",
PlotLegends -> Automatic, FrameLabel -> {"IPTG", "Rib"},
PlotLabel -> "Model Prediction Heat Map"]
But what I want is this
ListDensityPlot[Partition[data, 6], InterpolationOrder -> 0,
Mesh -> 5, PlotRange -> All, ColorFunction -> "TemperatureMap",
PlotLegends -> Automatic, FrameLabel -> {"IPTG", "Rib"},
PlotLabel -> "Model Prediction Heat Map"]
Of course, for each mesh square should have unique heat color.. They are not match as you can see, it match for the first one but it is not 6x6..
Is it by default MMA gives always 5x5 ListDensityPlot when you have 6x6 data?
I would like to get this kind of heat map if possible. I believe this pic produced using MatLab using the same data (possible transpose of data). Note that it is 6x6 squares not 5x5..
Thanks..
